Add missing security_secinfo bits as seen while managing security descriptor
authorgd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 9 Oct 2007 16:22:16 +0000 (16:22 +0000)
committergd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 9 Oct 2007 16:22:16 +0000 (16:22 +0000)
inheritance with regedit.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25593 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/librpc/idl/security.idl
source/librpc/ndr/ndr_sec_helper.c
source/librpc/ndr/security.h

index 8bf5e6f..8a0d36a 100644 (file)
@@ -350,6 +350,10 @@ interface security
                SECINFO_OWNER                = 0x00000001,
                SECINFO_GROUP                = 0x00000002,
                SECINFO_DACL                 = 0x00000004,
-               SECINFO_SACL                 = 0x00000008
+               SECINFO_SACL                 = 0x00000008,
+               SECINFO_UNPROTECTED_SACL     = 0x10000000,
+               SECINFO_UNPROTECTED_DACL     = 0x20000000,
+               SECINFO_PROTECTED_SACL       = 0x40000000,
+               SECINFO_PROTECTED_DACL       = 0x80000000
        } security_secinfo;
 }
index d31a18c..a94f487 100644 (file)
@@ -897,6 +897,10 @@ void ndr_print_security_secinfo(struct ndr_print *ndr, const char *name, uint32_
        ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_GROUP", SECINFO_GROUP, r);
        ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_DACL", SECINFO_DACL, r);
        ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_SACL", SECINFO_SACL, r);
+       ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_UNPROTECTED_SACL", SECINFO_UNPROTECTED_SACL, r);
+       ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_UNPROTECTED_DACL", SECINFO_UNPROTECTED_DACL, r);
+       ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_PROTECTED_SACL", SECINFO_PROTECTED_SACL, r);
+       ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_PROTECTED_DACL", SECINFO_PROTECTED_DACL, r);
        ndr->depth--;
 }
 
index 61e0ea3..99f7daf 100644 (file)
@@ -249,5 +249,9 @@ struct security_token {
 #define SECINFO_GROUP ( 0x00000002 )
 #define SECINFO_DACL ( 0x00000004 )
 #define SECINFO_SACL ( 0x00000008 )
+#define SECINFO_UNPROTECTED_SACL ( 0x10000000 )
+#define SECINFO_UNPROTECTED_DACL ( 0x20000000 )
+#define SECINFO_PROTECTED_SACL ( 0x40000000 )
+#define SECINFO_PROTECTED_DACL ( 0x80000000 )
 
 #endif /* _HEADER_security */