1998-11-10 22:41:18 +03:00
/*
2002-01-30 09:08:46 +03:00
Unix SMB / CIFS implementation .
1998-11-10 22:41:18 +03:00
SMB parameters and setup
2000-05-27 05:26:34 +04:00
Copyright ( C ) Andrew Tridgell 1992 - 2000
Copyright ( C ) Luke Kenneth Casson Leighton 1996 - 2000
1998-11-10 22:41:18 +03:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
# ifndef _RPC_SECDES_H /* _RPC_SECDES_H */
# define _RPC_SECDES_H
2002-03-10 04:54:44 +03:00
# define SEC_RIGHTS_QUERY_VALUE 0x00000001
# define SEC_RIGHTS_SET_VALUE 0x00000002
# define SEC_RIGHTS_CREATE_SUBKEY 0x00000004
# define SEC_RIGHTS_ENUM_SUBKEYS 0x00000008
# define SEC_RIGHTS_NOTIFY 0x00000010
# define SEC_RIGHTS_CREATE_LINK 0x00000020
# define SEC_RIGHTS_READ 0x00020019
# define SEC_RIGHTS_FULL_CONTROL 0x000f003f
# define SEC_RIGHTS_MAXIMUM_ALLOWED 0x02000000
2002-11-02 15:53:13 +03:00
2002-03-10 04:54:44 +03:00
/* for ADS */
# define SEC_RIGHTS_LIST_CONTENTS 0x4
# define SEC_RIGHTS_LIST_OBJECT 0x80
# define SEC_RIGHTS_READ_ALL_PROP 0x10
# define SEC_RIGHTS_READ_PERMS 0x20000
# define SEC_RIGHTS_WRITE_ALL_VALID 0x8
# define SEC_RIGHTS_WRITE_ALL_PROP 0x20
# define SEC_RIGHTS_MODIFY_OWNER 0x80000
# define SEC_RIGHTS_MODIFY_PERMS 0x40000
# define SEC_RIGHTS_CREATE_CHILD 0x1
# define SEC_RIGHTS_DELETE_CHILD 0x2
# define SEC_RIGHTS_DELETE_SUBTREE 0x40
# define SEC_RIGHTS_DELETE 0x10000 /* advanced/special/object/delete */
# define SEC_RIGHTS_EXTENDED 0x100 /* change/reset password, receive/send as*/
# define SEC_RIGHTS_CHANGE_PASSWD SEC_RIGHTS_EXTENDED
# define SEC_RIGHTS_RESET_PASSWD SEC_RIGHTS_EXTENDED
# define SEC_RIGHTS_FULL_CTRL 0xf01ff
# define SEC_ACE_OBJECT_PRESENT 0x00000001 /* thanks for Jim McDonough <jmcd@us.ibm.com> */
# define SEC_ACE_OBJECT_INHERITED_PRESENT 0x00000002
# define SEC_ACE_FLAG_OBJECT_INHERIT 0x1
# define SEC_ACE_FLAG_CONTAINER_INHERIT 0x2
1998-11-12 00:44:02 +03:00
# define SEC_ACE_FLAG_NO_PROPAGATE_INHERIT 0x4
2002-03-10 04:54:44 +03:00
# define SEC_ACE_FLAG_INHERIT_ONLY 0x8
# define SEC_ACE_FLAG_INHERITED_ACE 0x10 /* New for Windows 2000 */
# define SEC_ACE_FLAG_VALID_INHERIT 0xf
# define SEC_ACE_FLAG_SUCCESSFUL_ACCESS 0x40
# define SEC_ACE_FLAG_FAILED_ACCESS 0x80
# define SEC_ACE_TYPE_ACCESS_ALLOWED 0x0
# define SEC_ACE_TYPE_ACCESS_DENIED 0x1
# define SEC_ACE_TYPE_SYSTEM_AUDIT 0x2
# define SEC_ACE_TYPE_SYSTEM_ALARM 0x3
# define SEC_ACE_TYPE_ALLOWED_COMPOUND 0x4
# define SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT 0x5
# define SEC_ACE_TYPE_ACCESS_DENIED_OBJECT 0x6
# define SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT 0x7
# define SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT 0x8
1998-11-12 00:44:02 +03:00
# define SEC_DESC_OWNER_DEFAULTED 0x0001
# define SEC_DESC_GROUP_DEFAULTED 0x0002
# define SEC_DESC_DACL_PRESENT 0x0004
# define SEC_DESC_DACL_DEFAULTED 0x0008
# define SEC_DESC_SACL_PRESENT 0x0010
# define SEC_DESC_SACL_DEFAULTED 0x0020
2003-06-06 00:29:55 +04:00
# define SEC_DESC_DACL_TRUSTED 0x0040
# define SEC_DESC_SERVER_SECURITY 0x0080
2000-02-29 21:46:45 +03:00
/*
* New Windows 2000 bits .
*/
2002-03-10 04:54:44 +03:00
# define SE_DESC_DACL_AUTO_INHERIT_REQ 0x0100
# define SE_DESC_SACL_AUTO_INHERIT_REQ 0x0200
# define SE_DESC_DACL_AUTO_INHERITED 0x0400
# define SE_DESC_SACL_AUTO_INHERITED 0x0800
2000-02-29 21:46:45 +03:00
# define SE_DESC_DACL_PROTECTED 0x1000
# define SE_DESC_SACL_PROTECTED 0x2000
2003-06-06 00:29:55 +04:00
/* Don't know what this means. */
# define SEC_DESC_RM_CONTROL_VALID 0x4000
# define SEC_DESC_SELF_RELATIVE 0x8000
1998-11-13 02:35:05 +03:00
/* security information */
2002-03-10 04:54:44 +03:00
# define OWNER_SECURITY_INFORMATION 0x00000001
# define GROUP_SECURITY_INFORMATION 0x00000002
# define DACL_SECURITY_INFORMATION 0x00000004
# define SACL_SECURITY_INFORMATION 0x00000008
2003-05-31 03:07:33 +04:00
/* Extra W2K flags. */
# define UNPROTECTED_SACL_SECURITY_INFORMATION 0x10000000
# define UNPROTECTED_DACL_SECURITY_INFORMATION 0x20000000
# define PROTECTED_SACL_SECURITY_INFORMATION 0x40000000
# define PROTECTED_DACL_SECURITY_INFORMATION 0x80000000
1998-11-12 00:44:02 +03:00
2001-01-31 08:14:31 +03:00
# define ALL_SECURITY_INFORMATION (OWNER_SECURITY_INFORMATION|GROUP_SECURITY_INFORMATION|\
2003-05-31 13:10:32 +04:00
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION | \
2003-05-31 03:07:33 +04:00
UNPROTECTED_SACL_SECURITY_INFORMATION | \
UNPROTECTED_DACL_SECURITY_INFORMATION | \
PROTECTED_SACL_SECURITY_INFORMATION | \
PROTECTED_DACL_SECURITY_INFORMATION )
1998-11-12 00:44:02 +03:00
2002-03-10 04:54:44 +03:00
/* Globally Unique ID */
# define GUID_SIZE 16
typedef struct guid_info
{
uint8 info [ GUID_SIZE ] ;
} GUID ;
1998-11-13 02:35:05 +03:00
/* SEC_ACCESS */
1998-11-10 22:41:18 +03:00
typedef struct security_info_info
{
1998-11-13 02:35:05 +03:00
uint32 mask ;
1998-11-10 22:41:18 +03:00
1998-11-13 02:35:05 +03:00
} SEC_ACCESS ;
1998-11-10 22:41:18 +03:00
/* SEC_ACE */
typedef struct security_ace_info
{
1998-11-13 02:35:05 +03:00
uint8 type ; /* xxxx_xxxx_ACE_TYPE - e.g allowed / denied etc */
uint8 flags ; /* xxxx_INHERIT_xxxx - e.g OBJECT_INHERIT_ACE */
1998-11-12 00:44:02 +03:00
uint16 size ;
1998-11-10 22:41:18 +03:00
1998-11-13 02:35:05 +03:00
SEC_ACCESS info ;
2002-03-10 04:54:44 +03:00
/* this stuff may be present when type is XXXX_TYPE_XXXX_OBJECT */
uint32 obj_flags ; /* xxxx_ACE_OBJECT_xxxx e.g present/inherited present etc */
GUID obj_guid ; /* object GUID */
GUID inh_guid ; /* inherited object GUID */
/* eof object stuff */
2001-11-30 04:04:15 +03:00
DOM_SID trustee ;
1998-11-10 22:41:18 +03:00
} SEC_ACE ;
2002-03-10 04:54:44 +03:00
# define SEC_ACE_HEADER_SIZE (2 * sizeof(uint8) + sizeof(uint16) + sizeof(uint32))
1998-11-10 22:41:18 +03:00
2000-10-05 23:04:41 +04:00
# ifndef ACL_REVISION
2000-06-08 04:17:05 +04:00
# define ACL_REVISION 0x3
2000-10-05 23:04:41 +04:00
# endif
2000-06-08 04:17:05 +04:00
2001-02-28 03:51:02 +03:00
# ifndef NT4_ACL_REVISION
# define NT4_ACL_REVISION 0x2
# endif
2000-10-05 23:04:41 +04:00
# ifndef _SEC_ACL
1998-11-10 22:41:18 +03:00
/* SEC_ACL */
typedef struct security_acl_info
{
2000-06-08 04:17:05 +04:00
uint16 revision ; /* 0x0003 */
1998-11-12 00:44:02 +03:00
uint16 size ; /* size in bytes of the entire ACL structure */
1998-11-10 22:41:18 +03:00
uint32 num_aces ; /* number of Access Control Entries */
2000-05-10 13:49:55 +04:00
SEC_ACE * ace ;
1998-11-10 22:41:18 +03:00
} SEC_ACL ;
2002-03-10 04:54:44 +03:00
# define SEC_ACL_HEADER_SIZE (2 * sizeof(uint16) + sizeof(uint32))
2000-10-05 23:04:41 +04:00
# define _SEC_ACL
# endif
1998-11-10 22:41:18 +03:00
2000-10-05 23:04:41 +04:00
# ifndef SEC_DESC_REVISION
2000-06-08 04:17:05 +04:00
# define SEC_DESC_REVISION 0x1
2000-10-05 23:04:41 +04:00
# endif
2000-05-27 05:26:34 +04:00
2000-10-05 23:04:41 +04:00
# ifndef _SEC_DESC
1998-11-10 22:41:18 +03:00
/* SEC_DESC */
typedef struct security_descriptor_info
{
1998-11-12 00:44:02 +03:00
uint16 revision ; /* 0x0001 */
uint16 type ; /* SEC_DESC_xxxx flags */
1998-11-10 22:41:18 +03:00
uint32 off_owner_sid ; /* offset to owner sid */
1998-11-12 00:44:02 +03:00
uint32 off_grp_sid ; /* offset to group sid */
uint32 off_sacl ; /* offset to system list of permissions */
uint32 off_dacl ; /* offset to list of permissions */
1998-11-13 02:35:05 +03:00
SEC_ACL * dacl ; /* user ACL */
SEC_ACL * sacl ; /* system ACL */
DOM_SID * owner_sid ;
DOM_SID * grp_sid ;
1998-11-10 22:41:18 +03:00
} SEC_DESC ;
2002-03-10 04:54:44 +03:00
# define SEC_DESC_HEADER_SIZE (2 * sizeof(uint16) + 4 * sizeof(uint32))
2000-10-05 23:04:41 +04:00
# define _SEC_DESC
# endif
1998-11-10 22:41:18 +03:00
2000-10-05 23:04:41 +04:00
# ifndef _SEC_DESC_BUF
1998-11-10 22:41:18 +03:00
/* SEC_DESC_BUF */
typedef struct sec_desc_buf_info
{
uint32 max_len ;
2001-02-28 03:51:02 +03:00
uint32 ptr ;
1998-11-10 22:41:18 +03:00
uint32 len ;
1998-11-11 22:22:08 +03:00
SEC_DESC * sec ;
1998-11-10 22:41:18 +03:00
} SEC_DESC_BUF ;
2000-10-05 23:04:41 +04:00
# define _SEC_DESC_BUF
# endif
1998-11-10 22:41:18 +03:00
2001-01-04 22:27:08 +03:00
/* A type to describe the mapping of generic access rights to object
specific access rights . */
typedef struct generic_mapping {
uint32 generic_read ;
uint32 generic_write ;
uint32 generic_execute ;
uint32 generic_all ;
} GENERIC_MAPPING ;
2002-03-15 11:14:10 +03:00
typedef struct standard_mapping {
uint32 std_read ;
uint32 std_write ;
uint32 std_execute ;
uint32 std_all ;
} STANDARD_MAPPING ;
2002-11-02 15:53:13 +03:00
/* Security Access Masks Rights */
# define SPECIFIC_RIGHTS_MASK 0x0000FFFF
# define STANDARD_RIGHTS_MASK 0x00FF0000
# define GENERIC_RIGHTS_MASK 0xF0000000
# define SEC_RIGHT_SYSTEM_SECURITY 0x01000000
# define SEC_RIGHT_MAXIMUM_ALLOWED 0x02000000
/* Generic access rights */
# define GENERIC_RIGHT_ALL_ACCESS 0x10000000
# define GENERIC_RIGHT_EXECUTE_ACCESS 0x20000000
# define GENERIC_RIGHT_WRITE_ACCESS 0x40000000
# define GENERIC_RIGHT_READ_ACCESS 0x80000000
/* Standard access rights. */
# define STD_RIGHT_DELETE_ACCESS 0x00010000
# define STD_RIGHT_READ_CONTROL_ACCESS 0x00020000
# define STD_RIGHT_WRITE_DAC_ACCESS 0x00040000
# define STD_RIGHT_WRITE_OWNER_ACCESS 0x00080000
# define STD_RIGHT_SYNCHRONIZE_ACCESS 0x00100000
# define STD_RIGHT_ALL_ACCESS 0x001F0000
/* Combinations of standard masks. */
# define STANDARD_RIGHTS_ALL_ACCESS STD_RIGHT_ALL_ACCESS /* 0x001f0000 */
# define STANDARD_RIGHTS_EXECUTE_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
# define STANDARD_RIGHTS_READ_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
# define STANDARD_RIGHTS_WRITE_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
# define STANDARD_RIGHTS_REQUIRED_ACCESS \
( STD_RIGHT_DELETE_ACCESS | \
STD_RIGHT_READ_CONTROL_ACCESS | \
STD_RIGHT_WRITE_DAC_ACCESS | \
STD_RIGHT_WRITE_OWNER_ACCESS ) /* 0x000f0000 */
/* File Object specific access rights */
# define SA_RIGHT_FILE_READ_DATA 0x00000001
# define SA_RIGHT_FILE_WRITE_DATA 0x00000002
# define SA_RIGHT_FILE_APPEND_DATA 0x00000004
# define SA_RIGHT_FILE_READ_EA 0x00000008
# define SA_RIGHT_FILE_WRITE_EA 0x00000010
# define SA_RIGHT_FILE_EXECUTE 0x00000020
# define SA_RIGHT_FILE_DELETE_CHILD 0x00000040
# define SA_RIGHT_FILE_READ_ATTRIBUTES 0x00000080
# define SA_RIGHT_FILE_WRITE_ATTRIBUTES 0x00000100
# define SA_RIGHT_FILE_ALL_ACCESS 0x000001FF
# define GENERIC_RIGHTS_FILE_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
STD_RIGHT_SYNCHRONIZE_ACCESS | \
SA_RIGHT_FILE_ALL_ACCESS )
# define GENERIC_RIGHTS_FILE_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
STD_RIGHT_SYNCHRONIZE_ACCESS | \
SA_RIGHT_FILE_READ_DATA | \
SA_RIGHT_FILE_READ_ATTRIBUTES | \
SA_RIGHT_FILE_READ_EA )
# define GENERIC_RIGHTS_FILE_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
STD_RIGHT_SYNCHRONIZE_ACCESS | \
SA_RIGHT_FILE_WRITE_DATA | \
SA_RIGHT_FILE_WRITE_ATTRIBUTES | \
SA_RIGHT_FILE_WRITE_EA | \
SA_RIGHT_FILE_APPEND_DATA )
# define GENERIC_RIGHTS_FILE_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_FILE_READ_ATTRIBUTES | \
SA_RIGHT_FILE_EXECUTE )
/* SAM Object specific access rights */
# define SA_RIGHT_SAM_UNKNOWN_1 0x00000001
# define SA_RIGHT_SAM_SHUTDOWN_SERVER 0x00000002
# define SA_RIGHT_SAM_UNKNOWN_4 0x00000004
# define SA_RIGHT_SAM_UNKNOWN_8 0x00000008
# define SA_RIGHT_SAM_ENUM_DOMAINS 0x00000010
# define SA_RIGHT_SAM_OPEN_DOMAIN 0x00000020
# define SA_RIGHT_SAM_ALL_ACCESS 0x0000003F
# define GENERIC_RIGHTS_SAM_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
SA_RIGHT_SAM_ALL_ACCESS )
# define GENERIC_RIGHTS_SAM_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
SA_RIGHT_SAM_ENUM_DOMAINS )
# define GENERIC_RIGHTS_SAM_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
SA_RIGHT_SAM_UNKNOWN_8 | \
SA_RIGHT_SAM_UNKNOWN_4 | \
SA_RIGHT_SAM_SHUTDOWN_SERVER )
# define GENERIC_RIGHTS_SAM_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_SAM_OPEN_DOMAIN | \
SA_RIGHT_SAM_UNKNOWN_1 )
/* Domain Object specific access rights */
# define SA_RIGHT_DOMAIN_LOOKUP_INFO_1 0x00000001
# define SA_RIGHT_DOMAIN_SET_INFO_1 0x00000002
# define SA_RIGHT_DOMAIN_LOOKUP_INFO_2 0x00000004
# define SA_RIGHT_DOMAIN_SET_INFO_2 0x00000008
# define SA_RIGHT_DOMAIN_CREATE_USER 0x00000010
# define SA_RIGHT_DOMAIN_CREATE_GROUP 0x00000020
# define SA_RIGHT_DOMAIN_CREATE_ALIAS 0x00000040
# define SA_RIGHT_DOMAIN_LOOKUP_ALIAS_BY_MEM 0x00000080
# define SA_RIGHT_DOMAIN_ENUM_ACCOUNTS 0x00000100
# define SA_RIGHT_DOMAIN_OPEN_ACCOUNT 0x00000200
# define SA_RIGHT_DOMAIN_SET_INFO_3 0x00000400
# define SA_RIGHT_DOMAIN_ALL_ACCESS 0x000007FF
# define GENERIC_RIGHTS_DOMAIN_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
SA_RIGHT_DOMAIN_ALL_ACCESS )
# define GENERIC_RIGHTS_DOMAIN_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
SA_RIGHT_DOMAIN_LOOKUP_ALIAS_BY_MEM | \
SA_RIGHT_DOMAIN_LOOKUP_INFO_2 )
# define GENERIC_RIGHTS_DOMAIN_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
SA_RIGHT_DOMAIN_SET_INFO_3 | \
SA_RIGHT_DOMAIN_CREATE_ALIAS | \
SA_RIGHT_DOMAIN_CREATE_GROUP | \
SA_RIGHT_DOMAIN_CREATE_USER | \
SA_RIGHT_DOMAIN_SET_INFO_2 | \
SA_RIGHT_DOMAIN_SET_INFO_1 )
# define GENERIC_RIGHTS_DOMAIN_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_DOMAIN_OPEN_ACCOUNT | \
SA_RIGHT_DOMAIN_ENUM_ACCOUNTS | \
SA_RIGHT_DOMAIN_LOOKUP_INFO_1 )
/* User Object specific access rights */
# define SA_RIGHT_USER_GET_NAME_ETC 0x00000001
# define SA_RIGHT_USER_GET_LOCALE 0x00000002
# define SA_RIGHT_USER_SET_LOC_COM 0x00000004
# define SA_RIGHT_USER_GET_LOGONINFO 0x00000008
# define SA_RIGHT_USER_ACCT_FLAGS_EXPIRY 0x00000010
# define SA_RIGHT_USER_SET_ATTRIBUTES 0x00000020
# define SA_RIGHT_USER_CHANGE_PASSWORD 0x00000040
# define SA_RIGHT_USER_SET_PASSWORD 0x00000080
# define SA_RIGHT_USER_GET_GROUPS 0x00000100
# define SA_RIGHT_USER_UNKNOWN_200 0x00000200
# define SA_RIGHT_USER_UNKNOWN_400 0x00000400
# define SA_RIGHT_USER_ALL_ACCESS 0x000007FF
# define GENERIC_RIGHTS_USER_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
SA_RIGHT_USER_ALL_ACCESS ) /* 0x000f07ff */
# define GENERIC_RIGHTS_USER_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
SA_RIGHT_USER_UNKNOWN_200 | \
SA_RIGHT_USER_GET_GROUPS | \
SA_RIGHT_USER_ACCT_FLAGS_EXPIRY | \
SA_RIGHT_USER_GET_LOGONINFO | \
SA_RIGHT_USER_GET_LOCALE ) /* 0x0002031a */
# define GENERIC_RIGHTS_USER_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
SA_RIGHT_USER_CHANGE_PASSWORD | \
SA_RIGHT_USER_SET_LOC_COM ) /* 0x00020044 */
# define GENERIC_RIGHTS_USER_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_USER_CHANGE_PASSWORD | \
SA_RIGHT_USER_GET_NAME_ETC ) /* 0x00020041 */
/* Group Object specific access rights */
# define SA_RIGHT_GROUP_LOOKUP_INFO 0x00000001
# define SA_RIGHT_GROUP_SET_INFO 0x00000002
# define SA_RIGHT_GROUP_ADD_MEMBER 0x00000004
# define SA_RIGHT_GROUP_REMOVE_MEMBER 0x00000008
# define SA_RIGHT_GROUP_GET_MEMBERS 0x00000010
# define SA_RIGHT_GROUP_ALL_ACCESS 0x0000001F
# define GENERIC_RIGHTS_GROUP_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
SA_RIGHT_GROUP_ALL_ACCESS ) /* 0x000f001f */
# define GENERIC_RIGHTS_GROUP_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
SA_RIGHT_GROUP_GET_MEMBERS ) /* 0x00020010 */
# define GENERIC_RIGHTS_GROUP_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
SA_RIGHT_GROUP_REMOVE_MEMBER | \
SA_RIGHT_GROUP_ADD_MEMBER | \
SA_RIGHT_GROUP_SET_INFO ) /* 0x0002000e */
# define GENERIC_RIGHTS_GROUP_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_GROUP_LOOKUP_INFO ) /* 0x00020001 */
/* Alias Object specific access rights */
# define SA_RIGHT_ALIAS_ADD_MEMBER 0x00000001
# define SA_RIGHT_ALIAS_REMOVE_MEMBER 0x00000002
# define SA_RIGHT_ALIAS_GET_MEMBERS 0x00000004
# define SA_RIGHT_ALIAS_LOOKUP_INFO 0x00000008
# define SA_RIGHT_ALIAS_SET_INFO 0x00000010
# define SA_RIGHT_ALIAS_ALL_ACCESS 0x0000001F
# define GENERIC_RIGHTS_ALIAS_ALL_ACCESS \
( STANDARD_RIGHTS_REQUIRED_ACCESS | \
SA_RIGHT_ALIAS_ALL_ACCESS ) /* 0x000f001f */
# define GENERIC_RIGHTS_ALIAS_READ \
( STANDARD_RIGHTS_READ_ACCESS | \
SA_RIGHT_ALIAS_GET_MEMBERS ) /* 0x00020004 */
# define GENERIC_RIGHTS_ALIAS_WRITE \
( STANDARD_RIGHTS_WRITE_ACCESS | \
SA_RIGHT_ALIAS_REMOVE_MEMBER | \
SA_RIGHT_ALIAS_ADD_MEMBER | \
SA_RIGHT_ALIAS_SET_INFO ) /* 0x00020013 */
# define GENERIC_RIGHTS_ALIAS_EXECUTE \
( STANDARD_RIGHTS_EXECUTE_ACCESS | \
SA_RIGHT_ALIAS_LOOKUP_INFO ) /* 0x00020008 */
1998-11-10 22:41:18 +03:00
# endif /* _RPC_SECDES_H */