diff options
author | Alexander Bokovoy <ab@samba.org> | 2005-04-15 14:45:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:34 -0500 |
commit | 9779e6d670d19a5dfdc034084b580653d5ca0670 (patch) | |
tree | 41dd03bbb94b5c80bf8f3943c2a5b39ab101318b /source4/libcli/composite/composite.h | |
parent | 7fc2109b9e5e3e1c100da9d9feb865ce412d8b0f (diff) | |
download | samba-9779e6d670d19a5dfdc034084b580653d5ca0670.tar.gz samba-9779e6d670d19a5dfdc034084b580653d5ca0670.tar.bz2 samba-9779e6d670d19a5dfdc034084b580653d5ca0670.zip |
r6352: Two new composite calls:
- qfsinfo (query file system information)
- appendacl (append an ACL to existing file's security descriptor and get new
full ACL)
The second one also includes an improvement to security descriptor handling
which allows to copy security descriptor. Written by Peter Novodvorsky
<peter.novodvorsky@ru.ibm.com>
Both functions have corresponding torture tests added. Tested under valgrind and
work against Samba 4 and Windows XP.
ToDo: document composite call creation process in prog_guide.txt
(This used to be commit 441cff62ac75ed16851ce7b8daf9d03eb4c3ec79)
Diffstat (limited to 'source4/libcli/composite/composite.h')
-rw-r--r-- | source4/libcli/composite/composite.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source4/libcli/composite/composite.h b/source4/libcli/composite/composite.h index 18922127ee..87e7a7b6ad 100644 --- a/source4/libcli/composite/composite.h +++ b/source4/libcli/composite/composite.h @@ -135,3 +135,40 @@ struct smb_composite_sesssetup { uint16_t vuid; } out; }; + +/* + query file system info +*/ +struct smb_composite_fsinfo { + struct { + const char *dest_host; + int port; + const char *called_name; + const char *service; + const char *service_type; + struct cli_credentials *credentials; + const char *workgroup; + enum smb_fsinfo_level level; + } in; + + struct { + union smb_fsinfo *fsinfo; + } out; +}; + +/* + composite call for appending new acl to the file's security descriptor and get + new full acl +*/ + +struct smb_composite_appendacl { + struct { + const char *fname; + + const struct security_descriptor *sd; + } in; + + struct { + struct security_descriptor *sd; + } out; +}; |