Bug 1327175 - augeas fails to parse a cgconfig.conf file with the fperm and dperm keys in the task/admin blocks inside a perm block inside a group block.
Summary: augeas fails to parse a cgconfig.conf file with the fperm and dperm keys in t...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: augeas
Version: 6.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 6.8
Assignee: Dominic Cleal
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1269194
TreeView+ depends on / blocked
 
Reported: 2016-04-14 12:04 UTC by Muhammad Azhar Shaikh
Modified: 2020-07-16 08:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-02 16:52:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Muhammad Azhar Shaikh 2016-04-14 12:04:10 UTC
RHEL7.2 https://bugzilla.redhat.com/1325741


RHEL6.7
augeas-1.0.0-10.el6.x86_64

The only differences for RHEL6 from the RHEL7 behavior mentioned previously is version of the RPM is augeas-1.0.0-10.el6.x86_64, and that you need to 'print /augeas//error' instead of using the 'errors' alias, like so:

# cat >/var/tmp/fails.aug <<EOM
set /files/etc/cgconfig.conf/group[ .= 'new_group' ] 'new_group'
set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/uid 'root'
set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/gid 'root'
set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/fperm '777'
save
print /augeas//error
EOM

# augtool -f /var/tmp/fails.aug -e
augtool> set /files/etc/cgconfig.conf/group[ .= 'new_group' ] 'new_group'
augtool> set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/uid 'root'
augtool> set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/gid 'root'
augtool> set /files/etc/cgconfig.conf/group[ .= 'new_group' ]/perm/task/fperm '777'
augtool> save
error: Failed to execute command
saving failed (run 'print /augeas//error' for details)
augtool> print /augeas//error
/augeas/files/etc/cgconfig.conf/error = "put_failed"
/augeas/files/etc/cgconfig.conf/error/path = "/files/etc/cgconfig.conf/group/perm/task"
/augeas/files/etc/cgconfig.conf/error/lens = "/usr/share/augeas/lenses/dist/cgconfig.aug:50.7-.49:"
/augeas/files/etc/cgconfig.conf/error/message = "Failed to match \n    ({ /uid|gid/ = /[^\\001-\\004\\t\\n #;{}]+/ } | { /#comment/ = /[^\\001-\\004\\t\\n\\r ][^\\001-\\004\\n]*[^\\001-\\004\\t\\n\\r ]|[^\\001-\\004\\t\\n\\r ]/ } | { })*\n  with tree\n    { \"uid\" = \"root\" } { \"gid\" = \"root\" } { \"fperm\" = \"777\" }"

Comment 2 Chris Williams 2017-06-02 16:52:55 UTC
Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017.  During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification.  Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com


Note You need to log in before you can comment on or make changes to this bug.