* sec_acl.cc (setacl): Always grant default owner entry

STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.
This commit is contained in:
Corinna Vinschen 2015-02-25 21:30:45 +00:00
parent 55368b6d42
commit 3667a9f444
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-02-25 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (setacl): Always grant default owner entry
STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.
2015-02-25 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart to

View File

@ -258,6 +258,8 @@ setacl (HANDLE handle, path_conv &pc, int nentries, aclent_t *aclbufp,
switch (aclbufp[i].a_type)
{
case DEF_USER_OBJ:
allow |= STANDARD_RIGHTS_ALL
| (pc.fs_is_samba () ? 0 : FILE_WRITE_ATTRIBUTES);
if (!add_access_allowed_ace (acl, ace_off++, allow,
well_known_creator_owner_sid, acl_len, inheritance))
return -1;