From 788d7f9e4ae76105ee481bde42e2ddb8fdac2617 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 2 Jun 2010 23:16:32 +0200 Subject: [PATCH] s3-security: remove some more shared secdesc defines. Guenther --- source3/include/rpc_secdes.h | 10 ---------- source3/smbd/posix_acls.c | 6 +++--- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/source3/include/rpc_secdes.h b/source3/include/rpc_secdes.h index e21767eba64..0badd0a4788 100644 --- a/source3/include/rpc_secdes.h +++ b/source3/include/rpc_secdes.h @@ -24,16 +24,6 @@ /* for ADS */ #define SEC_RIGHTS_FULL_CTRL 0xf01ff -/* - * New Windows 2000 bits. - */ -#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 -#define SE_DESC_DACL_PROTECTED 0x1000 -#define SE_DESC_SACL_PROTECTED 0x2000 - /* security information */ #define OWNER_SECURITY_INFORMATION 0x00000001 #define GROUP_SECURITY_INFORMATION 0x00000002 diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index d56a8e9db5f..36d18b013c0 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -475,7 +475,7 @@ static struct pai_val *create_pai_val_v1(const char *buf, size_t size) memset(paiv, '\0', sizeof(struct pai_val)); paiv->sd_type = (CVAL(buf,PAI_V1_FLAG_OFFSET) == PAI_V1_ACL_FLAG_PROTECTED) ? - SE_DESC_DACL_PROTECTED : 0; + SEC_DESC_DACL_PROTECTED : 0; paiv->num_entries = SVAL(buf,PAI_V1_NUM_ENTRIES_OFFSET); paiv->num_def_entries = SVAL(buf,PAI_V1_NUM_DEFAULT_ENTRIES_OFFSET); @@ -3813,8 +3813,8 @@ NTSTATUS append_parent_acl(files_struct *fsp, psd->dacl->aces = new_ace; psd->dacl->num_aces = i; - psd->type &= ~(SE_DESC_DACL_AUTO_INHERITED| - SE_DESC_DACL_AUTO_INHERIT_REQ); + psd->type &= ~(SEC_DESC_DACL_AUTO_INHERITED| + SEC_DESC_DACL_AUTO_INHERIT_REQ); *pp_new_sd = psd; return status; -- 2.11.4.GIT