[systemd-bugs] [Bug 89202] New: systemd-tmpfiles adds ACLs multiple times
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Feb 18 05:21:27 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89202
Bug ID: 89202
Summary: systemd-tmpfiles adds ACLs multiple times
Product: systemd
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: martin.pitt at ubuntu.com
QA Contact: systemd-bugs at lists.freedesktop.org
Version 219 gained support for ACLs in tmpfiles.d. But this isn't idempotent,
it appends identical ACLs with each run. This isn't that important for /run/,
but problematic for persistant directories like /var/log/journal.
If you run
sudo ./systemd-tmpfiles --create `pwd`/tmpfiles.d/systemd.conf
in the built tree (which is probably the most convenient reproducer for
developers) 3 times, you get
$ getfacl /run/log/journal/5aa2ce6f17f156f9099864b6546dc1b0/
# file: run/log/journal/5aa2ce6f17f156f9099864b6546dc1b0/
# owner: root
# group: systemd-journal
# flags: -s-
user::rwx
group::r-x
group:adm:r-x
group:adm:r-x
group:adm:r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x
default:group:adm:r-x
default:group:adm:r-x
default:group:adm:r-x
default:mask::r-x
default:other::---
I. e. the "adm" ACLs are repeated three times (notice that I left out the
"wheel" ones as that group doesn't exist in Debian).
These duplicate entries not only pile up on persistant directories like /var
over time, they also break the setfacl command line tool, which doesn't like
them:
$ sudo setfacl -R -nm g:adm:rx,d:g:adm:rx
/run/log/journal/5aa2ce6f17f156f9099864b6546dc1b0
setfacl: /run/log/journal/5aa2ce6f17f156f9099864b6546dc1b0: Malformed access
ACL
`user::rwx,group::r-x,group:adm:r-x,group:adm:r-x,group:adm:r-x,mask::r-x,other::---':
Duplicate entries at entry 4
setfacl: /run/log/journal/5aa2ce6f17f156f9099864b6546dc1b0/system.journal:
Malformed access ACL
`user::rwx,group::r--,group:adm:r-x,group:adm:r-x,group:adm:r-x,mask::r-x,other::---':
Duplicate entries at entry 4
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150218/739b0d5e/attachment.html>
More information about the systemd-bugs
mailing list