coredump,journal: do not do ACL magic for processes of dynamic UIDs

Dynamic UIDs should be treated like system users in this regard.
This commit is contained in:
Lennart Poettering 2017-12-02 13:02:44 +01:00
parent ece877d434
commit 4e72397b00
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ static int fix_acl(int fd, uid_t uid) {
assert(fd >= 0);
if (uid_is_system(uid))
if (uid_is_system(uid) || uid_is_dynamic(uid))
return 0;
/* Make sure normal users can read (but not write or delete)

View File

@ -248,7 +248,7 @@ static void server_add_acls(JournalFile *f, uid_t uid) {
assert(f);
#if HAVE_ACL
if (uid_is_system(uid))
if (uid_is_system(uid) || uid_is_dynamic(uid))
return;
r = add_acls_for_user(f->fd, uid);