From 55c00f32ca39eab9bcebe70a3648ac2bb4758b29 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Nov 2012 09:34:43 +0100 Subject: [PATCH] librpc/idl: add uuid to security.idl to that ndrdump picks it up Signed-off-by: Stefan Metzmacher --- librpc/idl/security.idl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl index 33085c4e149a..fc09ca1f84c4 100644 --- a/librpc/idl/security.idl +++ b/librpc/idl/security.idl @@ -26,6 +26,11 @@ cpp_quote("#define dom_sid28 dom_sid") cpp_quote("#define dom_sid0 dom_sid") [ + /* + * cbf7d408-2d6c-11e2-ae5b-0b5692790e18 just makes ndrdump happy + */ + uuid("cbf7d408-2d6c-11e2-ae5b-0b5692790e18"), + version(0.0), pyhelper("librpc/ndr/py_security.c"), pointer_default(unique) ] @@ -571,11 +576,19 @@ interface security [relative] security_acl *dacl; /* user (discretionary) ACL */ } security_descriptor; + [nopython] void decode_security_descriptor ( + [in] security_descriptor sd + ); + typedef [public] struct { [range(0,0x40000),value(ndr_size_security_descriptor(sd,ndr->flags))] uint32 sd_size; [subcontext(4)] security_descriptor *sd; } sec_desc_buf; + [nopython] void decode_sec_desc_buf ( + [in] sec_desc_buf sd_buf + ); + /* This is not yet sent over the network, but is simply defined in IDL */ typedef [public] struct { uint32 num_sids; @@ -584,6 +597,10 @@ interface security lsa_SystemAccessModeFlags rights_mask; } security_token; + [nopython] void decode_security_token ( + [in] security_token token + ); + /* This is not yet sent over the network, but is simply defined in IDL */ typedef [public] struct { uid_t uid; @@ -592,6 +609,10 @@ interface security [size_is(ngroups)] gid_t groups[*]; } security_unix_token; + [nopython] void decode_security_unix_token ( + [in] security_unix_token unix_token + ); + /* bits that determine which parts of a security descriptor are being queried/set */ typedef [public,bitmap32bit] bitmap { -- 2.34.1