Bug 1241997

Summary: [tmpfiles] Invalid ACLs
Product: [Fedora] Fedora Reporter: Mathieu Bridon <bochecha>
Component: systemdAssignee: systemd-maint
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: johannbg, jsynacek, lnykryn, msekleta, s, stanislas.david, systemd-maint, zbyszek
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 15:17:26 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:
Embargoed:

Description Mathieu Bridon 2015-07-10 15:22:28 UTC
In my journal, I found the following:

 Jul 10 16:51:30 mathieus-t440s systemd-tmpfiles[147]: Failed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x": Invalid argument. Ignoring
 Jul 10 16:51:30 mathieus-t440s systemd-tmpfiles[147]: Failed to parse ACL "group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring
 Jul 10 16:51:30 mathieus-t440s systemd-tmpfiles[147]: Failed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x": Invalid argument. Ignoring
 Jul 10 16:51:30 mathieus-t440s systemd-tmpfiles[147]: Failed to parse ACL "group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring

Those ACLs seem to come from the following file:

 $ grep -r "d:group:adm:r-x,d:group:wheel:r-x" /usr/lib/tmpfiles.d/
 /usr/lib/tmpfiles.d/systemd.conf:a+ /run/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
 /usr/lib/tmpfiles.d/systemd.conf:a+ /var/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
 $ grep -r "group:adm:r-x,group:wheel:r-x" /usr/lib/tmpfiles.d/
 /usr/lib/tmpfiles.d/systemd.conf:A+ /run/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
 /usr/lib/tmpfiles.d/systemd.conf:A+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x

It seems a bit weird that systemd would be providing files that it itself considers invalid. :)

This happens with:

 $ rpm -q systemd
 systemd-219-18.fc22.x86_64

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-07-10 18:12:01 UTC
This happens in the initramfs, where some groups are not defined, and acl parsing fails. Unfortunately the parsing code (libacl) does not return meaningful error codes, so we don't have a way to differentiate between a "non-error" like missing groups, which we would simply ignore, and other errors. Some solution will have to be implemented in systemd upstream to deal with this properly.

Comment 3 Fedora End Of Life 2016-07-19 15:17:26 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.