chiark / gitweb /
journald: DO recalculate the ACL mask, but only if it doesn't exist
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 28 May 2013 18:45:34 +0000 (20:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2013 04:43:39 +0000 (00:43 -0400)
commit23ad4dd8844c582929115a11ed2830a1371568d6
tree72da26672d1661c56b8ac5e2735167682692d952
parent8de1fd281e82c038797b02a447056a382f9b5110
journald: DO recalculate the ACL mask, but only if it doesn't exist

Since 11ec7ce, journald isn't setting the ACLs properly anymore if
the files had no ACLs to begin with: acl_set_fd fails with EINVAL.

An ACL with ACL_USER or ACL_GROUP entries but no ACL_MASK entry is
invalid, so make sure a mask exists before trying to set the ACL.
src/journal/journald-server.c
src/shared/acl-util.c
src/shared/acl-util.h