Swat now uses the auto-generated smb.conf.5.html.
[Samba/gebeck_regimport.git] / source / include / rpc_secdes.h
blob587b31e3dcb5799a1974e9ec4f22a5656f644050
1 /*
2 Unix SMB/Netbios implementation.
3 Version 1.9.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-1997
6 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
7 Copyright (C) Paul Ashton 1997
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _RPC_SECDES_H /* _RPC_SECDES_H */
25 #define _RPC_SECDES_H
27 #define SEC_RIGHTS_QUERY_VALUE 0x00000001
28 #define SEC_RIGHTS_SET_VALUE 0x00000002
29 #define SEC_RIGHTS_CREATE_SUBKEY 0x00000004
30 #define SEC_RIGHTS_ENUM_SUBKEYS 0x00000008
31 #define SEC_RIGHTS_NOTIFY 0x00000010
32 #define SEC_RIGHTS_CREATE_LINK 0x00000020
33 #define SEC_RIGHTS_DELETE 0x00010000
34 #define SEC_RIGHTS_READ_CONTROL 0x00020000
35 #define SEC_RIGHTS_WRITE_DAC 0x00040000
36 #define SEC_RIGHTS_WRITE_OWNER 0x00080000
38 #define SEC_RIGHTS_READ 0x00020019
39 #define SEC_RIGHTS_FULL_CONTROL 0x000f003f
41 /* SEC_INFO */
42 typedef struct security_info_info
44 uint32 perms;
46 } SEC_INFO;
48 /* SEC_ACE */
49 typedef struct security_ace_info
51 uint16 unknown_1; /* 0x2000 */
52 uint16 ace_size;
54 SEC_INFO info;
55 DOM_SID sid;
57 } SEC_ACE;
60 #define MAX_SEC_ACES 16
62 /* SEC_ACL */
63 typedef struct security_acl_info
65 uint16 unknown_1; /* 0x0002 */
66 uint16 acl_size; /* size in bytes of the entire ACL structure */
67 uint32 num_aces; /* number of Access Control Entries */
69 SEC_ACE ace[MAX_SEC_ACES];
71 } SEC_ACL;
73 /* SEC_DESC */
74 typedef struct security_descriptor_info
76 uint16 unknown_1; /* 0x0001 */
77 uint16 unknown_2; /* 0x8004 */
79 uint32 off_owner_sid; /* offset to owner sid */
80 uint32 off_pnt_sid ; /* offset to parent? sid */
81 uint32 off_unknown ; /* 0x0000 0000 */
82 uint32 off_acl ; /* offset to list of permissions */
84 SEC_ACL acl;
85 DOM_SID owner_sid;
86 DOM_SID parent_sid;
88 } SEC_DESC;
90 /* SEC_DESC_BUF */
91 typedef struct sec_desc_buf_info
93 uint32 max_len;
94 uint32 undoc;
95 uint32 len;
97 SEC_DESC sec;
99 } SEC_DESC_BUF;
101 #endif /* _RPC_SECDES_H */