From 37b978c343b5727c7257d7a0a574ba82bb0c9c0f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 2 Jun 2010 23:48:15 +0200 Subject: s3-security: use shared "Generic access rights". Guenther --- source3/include/rpc_secdes.h | 7 ------- source3/modules/vfs_afsacl.c | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/source3/include/rpc_secdes.h b/source3/include/rpc_secdes.h index ec1bbc61ea..f3efe27d7f 100644 --- a/source3/include/rpc_secdes.h +++ b/source3/include/rpc_secdes.h @@ -41,13 +41,6 @@ struct standard_mapping { uint32 std_all; }; -/* 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 diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c index dacd58f7ae..9dd5df87ec 100644 --- a/source3/modules/vfs_afsacl.c +++ b/source3/modules/vfs_afsacl.c @@ -514,7 +514,7 @@ static struct static_dir_ace_mapping { /* FULL inherit only -- counterpart to previous one */ { 0, SEC_ACE_FLAG_OBJECT_INHERIT|SEC_ACE_FLAG_CONTAINER_INHERIT|SEC_ACE_FLAG_INHERIT_ONLY, - PERMS_FULL | GENERIC_RIGHT_WRITE_ACCESS, 127 /* rlidwka */ }, + PERMS_FULL | SEC_GENERIC_WRITE, 127 /* rlidwka */ }, /* CHANGE without inheritance -- in all cases here we also get the corresponding INHERIT_ONLY ACE in the same ACL */ @@ -522,7 +522,7 @@ static struct static_dir_ace_mapping { /* CHANGE inherit only -- counterpart to previous one */ { 0, SEC_ACE_FLAG_OBJECT_INHERIT|SEC_ACE_FLAG_CONTAINER_INHERIT|SEC_ACE_FLAG_INHERIT_ONLY, - PERMS_CHANGE | GENERIC_RIGHT_WRITE_ACCESS, 63 /* rlidwk */ }, + PERMS_CHANGE | SEC_GENERIC_WRITE, 63 /* rlidwk */ }, /* End marker, hopefully there's no afs right 9999 :-) */ { 0, 0, 0, 9999 } -- cgit