1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r25730: Fix IDL for incorrect winreg_SetKeySecurity.

Guenther
This commit is contained in:
Günther Deschner 2007-10-25 11:12:02 +02:00 committed by Stefan Metzmacher
parent 7e68051bb7
commit 767867c3ee
2 changed files with 18 additions and 2 deletions

View File

@ -273,7 +273,7 @@ import "lsa.idl", "initshutdown.idl", "security.idl";
/* Function: 0x15 */
WERROR winreg_SetKeySecurity(
[in,ref] policy_handle *handle,
[in] winreg_AccessMask access_mask,
[in] security_secinfo sec_info,
[in,ref] KeySecurityData *sd
);

View File

@ -228,6 +228,7 @@ static bool test_SetKeySecurity(struct dcerpc_pipe *p,
struct winreg_SetKeySecurity r;
struct KeySecurityData *sdata = NULL;
DATA_BLOB sdblob;
uint32_t sec_info;
ZERO_STRUCT(r);
@ -245,8 +246,23 @@ static bool test_SetKeySecurity(struct dcerpc_pipe *p,
sdata->size = sdblob.length;
sdata->len = sdblob.length;
sec_info = SECINFO_UNPROTECTED_SACL | SECINFO_UNPROTECTED_DACL;
if (sd->owner_sid) {
sec_info |= SECINFO_OWNER;
}
if (sd->group_sid) {
sec_info |= SECINFO_GROUP;
}
if (sd->sacl) {
sec_info |= SECINFO_SACL;
}
if (sd->dacl) {
sec_info |= SECINFO_DACL;
}
r.in.handle = handle;
r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
r.in.sec_info = sec_info;
r.in.sd = sdata;
torture_assert_ntstatus_ok(tctx,