mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Fix bug #5052 - not work cancel inheritance on share. We were
using the parent security descriptor type and flags instead of using the passed in SD. Jeremy. (This used to be commit 0d824d7188518aaa7b4e890885e6bc42e94397c5)
This commit is contained in:
parent
272134b759
commit
5f3160ce27
@ -3398,10 +3398,17 @@ static NTSTATUS append_parent_acl(files_struct *fsp,
|
||||
parent_name));
|
||||
}
|
||||
|
||||
parent_sd->dacl->aces = new_ace;
|
||||
parent_sd->dacl->num_aces = i;
|
||||
/* This sucks. psd should be const and we should
|
||||
* be doing a deep-copy here. We're getting away
|
||||
* with is as we know parent_sd is talloced off
|
||||
* talloc_tos() as well as psd. JRA. */
|
||||
|
||||
*pp_new_sd = parent_sd;
|
||||
psd->dacl->aces = new_ace;
|
||||
psd->dacl->num_aces = i;
|
||||
psd->type &= ~(SE_DESC_DACL_AUTO_INHERITED|
|
||||
SE_DESC_DACL_AUTO_INHERIT_REQ);
|
||||
|
||||
*pp_new_sd = psd;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user