* sec_acl.cc (get_posix_access): Fix class_perm in !new_style case.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2015-08-31 16:56:14 +02:00
parent bc444e5aa4
commit e2742d467a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-11-18 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (get_posix_access): Fix class_perm in !new_style case.
2015-11-18 Corinna Vinschen <corinna@vinschen.de>
Reapply POSIX ACL changes.

View File

@ -880,7 +880,8 @@ get_posix_access (PSECURITY_DESCRIPTOR psd,
{
lacl[pos].a_type = CLASS_OBJ;
lacl[pos].a_id = ILLEGAL_GID;
lacl[pos].a_perm = class_perm | lacl[1].a_perm;
class_perm |= lacl[1].a_perm;
lacl[pos].a_perm = class_perm;
}
/* For ptys, fake a mask if the admins group is neither owner nor group.
In that case we have an extra ACE for the admins group, and we need a