security-idl: add STANDARD_RIGHTS_X bits.
authorGünther Deschner <gd@samba.org>
Thu, 23 Oct 2008 23:58:05 +0000 (01:58 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 31 Oct 2008 20:14:27 +0000 (21:14 +0100)
Guenther

librpc/idl/security.idl

index 6704e300a5108e4618b349f033a11bc69c863e6e..a313a2ccee2f29516db0d86840111e87b8933f9e 100644 (file)
@@ -136,6 +136,20 @@ interface security
        const int SEC_RIGHTS_DIR_EXECUTE  = SEC_RIGHTS_FILE_EXECUTE;
        const int SEC_RIGHTS_DIR_ALL      = SEC_RIGHTS_FILE_ALL;
 
+       /* combinations of standard masks. */
+       const int STANDARD_RIGHTS_ALL_ACCESS            = SEC_STD_ALL; /* 0x001f0000 */
+       const int STANDARD_RIGHTS_MODIFY_ACCESS         = SEC_STD_READ_CONTROLS; /* 0x00020000 */
+       const int STANDARD_RIGHTS_EXECUTE_ACCESS        = SEC_STD_READ_CONTROLS; /* 0x00020000 */
+       const int STANDARD_RIGHTS_READ_ACCESS           = SEC_STD_READ_CONTROLS; /* 0x00020000 */
+       const int STANDARD_RIGHTS_WRITE_ACCESS =
+               (SEC_STD_WRITE_OWNER            |
+                SEC_STD_WRITE_DAC              |
+                SEC_STD_DELETE);       /* 0x000d0000 */
+       const int STANDARD_RIGHTS_REQUIRED_ACCESS =
+               (SEC_STD_DELETE                 |
+                SEC_STD_READ_CONTROL           |
+                SEC_STD_WRITE_DAC              |
+                SEC_STD_WRITE_OWNER);  /* 0x000f0000 */
 
        /***************************************************************/
        /* WELL KNOWN SIDS */