1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r21705: add modify rights defines

This commit is contained in:
Herb Lewis 2007-03-05 18:27:20 +00:00 committed by Gerald (Jerry) Carter
parent 51b96ba79c
commit 06c777529f

View File

@ -152,6 +152,7 @@ typedef struct standard_mapping {
/* Combinations of standard masks. */
#define STANDARD_RIGHTS_ALL_ACCESS STD_RIGHT_ALL_ACCESS /* 0x001f0000 */
#define STANDARD_RIGHTS_MODIFY_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
#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 \
@ -200,10 +201,23 @@ typedef struct standard_mapping {
#define GENERIC_RIGHTS_FILE_EXECUTE \
(STANDARD_RIGHTS_EXECUTE_ACCESS | \
STD_RIGHT_SYNCHRONIZE_ACCESS | \
SA_RIGHT_FILE_READ_ATTRIBUTES | \
SA_RIGHT_FILE_EXECUTE)
#define GENERIC_RIGHTS_FILE_MODIFY \
(STANDARD_RIGHTS_MODIFY_ACCESS | \
STD_RIGHT_SYNCHRONIZE_ACCESS | \
STD_RIGHT_DELETE_ACCESS | \
SA_RIGHT_FILE_WRITE_ATTRIBUTES | \
SA_RIGHT_FILE_READ_ATTRIBUTES | \
SA_RIGHT_FILE_EXECUTE | \
SA_RIGHT_FILE_WRITE_EA | \
SA_RIGHT_FILE_READ_EA | \
SA_RIGHT_FILE_APPEND_DATA | \
SA_RIGHT_FILE_WRITE_DATA | \
SA_RIGHT_FILE_READ_DATA)
/* SAM server specific access rights */
#define SA_RIGHT_SAM_CONNECT_SERVER 0x00000001