mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r4401: stricter test for correct ACL inheritance in RAW-ACLS
(This used to be commit 1bb7691963
)
This commit is contained in:
parent
07e1553f60
commit
a477387cd0
@ -954,7 +954,7 @@ static BOOL test_inheritance(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
|
||||
}
|
||||
|
||||
if (q.query_secdesc.out.sd->dacl == NULL ||
|
||||
q.query_secdesc.out.sd->dacl->num_aces < 1 ||
|
||||
q.query_secdesc.out.sd->dacl->num_aces != 1 ||
|
||||
q.query_secdesc.out.sd->dacl->aces[0].access_mask != SEC_FILE_WRITE_DATA ||
|
||||
!dom_sid_equal(&q.query_secdesc.out.sd->dacl->aces[0].trustee,
|
||||
sd_orig->owner_sid)) {
|
||||
@ -999,7 +999,7 @@ static BOOL test_inheritance(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
|
||||
}
|
||||
|
||||
if (q.query_secdesc.out.sd->dacl == NULL ||
|
||||
q.query_secdesc.out.sd->dacl->num_aces < 1 ||
|
||||
q.query_secdesc.out.sd->dacl->num_aces != 1 ||
|
||||
q.query_secdesc.out.sd->dacl->aces[0].access_mask != SEC_FILE_WRITE_DATA ||
|
||||
!dom_sid_equal(&q.query_secdesc.out.sd->dacl->aces[0].trustee,
|
||||
sd_orig->owner_sid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user