diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-13 01:38:41 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-13 01:38:41 +0000 |
commit | cb265dbb8b73a177d9e7fd52e53f1eba487b94d4 (patch) | |
tree | c717f798f4d099f95afd8d52deb5bfa5f44044b6 /source3/rpc_client | |
parent | 31c4953088c20de1eb292f47c87c70e38ca574ea (diff) | |
download | samba-cb265dbb8b73a177d9e7fd52e53f1eba487b94d4.tar.gz samba-cb265dbb8b73a177d9e7fd52e53f1eba487b94d4.tar.bz2 samba-cb265dbb8b73a177d9e7fd52e53f1eba487b94d4.zip |
security descriptors
(This used to be commit 9412edfd4c11a26e4ef290839375e3959cf70a7e)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_reg.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c index dc6f45ed86..61e38a8d96 100644 --- a/source3/rpc_client/cli_reg.c +++ b/source3/rpc_client/cli_reg.c @@ -674,6 +674,13 @@ BOOL do_reg_create_key(struct cli_state *cli, POLICY_HND *hnd, prs_struct buf; REG_Q_CREATE_KEY q_o; BOOL valid_create = False; + SEC_DESC sec; + SEC_DESC_BUF sec_buf; + int sec_len; + + ZERO_STRUCT(sec); + ZERO_STRUCT(sec_buf); + ZERO_STRUCT(q_o); if (hnd == NULL) return False; @@ -685,7 +692,13 @@ BOOL do_reg_create_key(struct cli_state *cli, POLICY_HND *hnd, DEBUG(4,("REG Create Key: %s %s 0x%08x\n", key_name, key_class, sam_access != NULL ? sam_access->mask : 0)); - make_reg_q_create_key(&q_o, hnd, key_name, key_class, sam_access); + sec_len = make_sec_desc(&sec, 1, SEC_DESC_SELF_RELATIVE, + NULL, NULL, NULL, NULL); + + DEBUG(10,("make_sec_desc: len = %d\n", sec_len)); + + make_reg_q_create_key(&q_o, hnd, key_name, key_class, sam_access, + &sec_buf, sec_len, &sec); /* turn parameters into data stream */ reg_io_q_create_key("", &q_o, &buf, 0); @@ -715,6 +728,8 @@ BOOL do_reg_create_key(struct cli_state *cli, POLICY_HND *hnd, } } + free_sec_desc(&sec); + prs_mem_free(&rbuf); prs_mem_free(&buf ); |