Bug 1327175

Summary: 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.
Product: Red Hat Enterprise Linux 6 Reporter: Muhammad Azhar Shaikh <mdshaikh>
Component: augeasAssignee: Dominic Cleal <dcleal>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: cww, leiwang
Target Milestone: rc   
Target Release: 6.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-02 16:52:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1269194    

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