]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/acl-util: add mask only when needed, always add base ACLs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 18 Jan 2015 23:22:27 +0000 (18:22 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Jan 2015 06:14:53 +0000 (01:14 -0500)
commitdd4105b0a90c3c146a01e5a7734ee76c3a9aa1cd
tree8495e75a56e34df54a13fcca25a5a2e2ec0248c2
parenta48a62a1af02aec4473c9deed98dd5b89d210f93
shared/acl-util: add mask only when needed, always add base ACLs

For ACLs to be valid, a set of entries for user, group, and other
must be always present. Always add those entries.

While at it, only add the mask ACL if it is actually required, i.e.
when at least on ACL for non-owner group or user exists.
man/tmpfiles.d.xml
src/shared/acl-util.c
src/shared/acl-util.h
src/tmpfiles/tmpfiles.c