diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-12 23:35:05 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-12 23:35:05 +0000 |
commit | 2c7f6da1fa95ff77d6c60fcd109205847519434f (patch) | |
tree | d52fbd3a92e235ce15a1670efa30f8c0bea21a02 /source3/include/rpc_secdes.h | |
parent | c1bf51bd2c993c09c67ff003c6fba4edd5b350bd (diff) | |
download | samba-2c7f6da1fa95ff77d6c60fcd109205847519434f.tar.gz samba-2c7f6da1fa95ff77d6c60fcd109205847519434f.tar.bz2 samba-2c7f6da1fa95ff77d6c60fcd109205847519434f.zip |
security descriptors.
kanji const char* warnings.
(This used to be commit 06abdfd68e1d7fa8741afc3f56ec7a13b5fa4ccc)
Diffstat (limited to 'source3/include/rpc_secdes.h')
-rw-r--r-- | source3/include/rpc_secdes.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/source3/include/rpc_secdes.h b/source3/include/rpc_secdes.h index b317ead5e1..5d5a1d0d84 100644 --- a/source3/include/rpc_secdes.h +++ b/source3/include/rpc_secdes.h @@ -60,24 +60,30 @@ #define SEC_DESC_SACL_DEFAULTED 0x0020 #define SEC_DESC_SELF_RELATIVE 0x8000 +/* security information */ +#define OWNER_SECURITY_INFORMATION 0x00000001 +#define GROUP_SECURITY_INFORMATION 0x00000002 +#define DACL_SECURITY_INFORMATION 0x00000004 +#define SACL_SECURITY_INFORMATION 0x00000008 -/* SEC_INFO */ + +/* SEC_ACCESS */ typedef struct security_info_info { - uint32 perms; + uint32 mask; -} SEC_INFO; +} SEC_ACCESS; /* SEC_ACE */ typedef struct security_ace_info { - uint8 type; - uint8 flags; + uint8 type; /* xxxx_xxxx_ACE_TYPE - e.g allowed / denied etc */ + uint8 flags; /* xxxx_INHERIT_xxxx - e.g OBJECT_INHERIT_ACE */ uint16 size; - SEC_INFO info; + SEC_ACCESS info; DOM_SID sid; } SEC_ACE; @@ -92,7 +98,7 @@ typedef struct security_acl_info uint16 size; /* size in bytes of the entire ACL structure */ uint32 num_aces; /* number of Access Control Entries */ - SEC_ACE ace[MAX_SEC_ACES]; + SEC_ACE *ace; } SEC_ACL; @@ -108,10 +114,10 @@ typedef struct security_descriptor_info uint32 off_sacl ; /* offset to system list of permissions */ uint32 off_dacl ; /* offset to list of permissions */ - SEC_ACL dacl; /* user ACL */ - SEC_ACL sacl; /* system ACL */ - DOM_SID owner_sid; - DOM_SID grp_sid; + SEC_ACL *dacl; /* user ACL */ + SEC_ACL *sacl; /* system ACL */ + DOM_SID *owner_sid; + DOM_SID *grp_sid; } SEC_DESC; |