summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-11 14:28:31 +0200
committerMichael Adam <obnox@samba.org>2009-08-12 00:34:33 +0200
commitaa07baa8515d7e692238fe2cdce95d0eaf0b1691 (patch)
treeeb667464c5e0ab625cd62aa77cce9f8bd53b71d0 /source3
parent303c3b363bc7c28f8eb3c264b0c116a062d4b603 (diff)
downloadsamba-aa07baa8515d7e692238fe2cdce95d0eaf0b1691.tar.gz
samba-aa07baa8515d7e692238fe2cdce95d0eaf0b1691.tar.bz2
samba-aa07baa8515d7e692238fe2cdce95d0eaf0b1691.zip
s3: refomat definitions of some generic access rights for better readability
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index b53735d36d..fb01a92113 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1225,18 +1225,29 @@ struct bitmap {
/* Mapping of generic access rights for files to specific rights. */
/* This maps to 0x1F01FF */
-#define FILE_GENERIC_ALL (STANDARD_RIGHTS_REQUIRED_ACCESS| SYNCHRONIZE_ACCESS|FILE_ALL_ACCESS)
+#define FILE_GENERIC_ALL (STANDARD_RIGHTS_REQUIRED_ACCESS|\
+ SYNCHRONIZE_ACCESS|\
+ FILE_ALL_ACCESS)
/* This maps to 0x120089 */
-#define FILE_GENERIC_READ (STANDARD_RIGHTS_READ_ACCESS|FILE_READ_DATA|FILE_READ_ATTRIBUTES|\
- FILE_READ_EA|SYNCHRONIZE_ACCESS)
+#define FILE_GENERIC_READ (STANDARD_RIGHTS_READ_ACCESS|\
+ FILE_READ_DATA|\
+ FILE_READ_ATTRIBUTES|\
+ FILE_READ_EA|\
+ SYNCHRONIZE_ACCESS)
/* This maps to 0x120116 */
-#define FILE_GENERIC_WRITE (STD_RIGHT_READ_CONTROL_ACCESS|FILE_WRITE_DATA|FILE_WRITE_ATTRIBUTES|\
- FILE_WRITE_EA|FILE_APPEND_DATA|SYNCHRONIZE_ACCESS)
-
-#define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE_ACCESS|FILE_READ_ATTRIBUTES|\
- FILE_EXECUTE|SYNCHRONIZE_ACCESS)
+#define FILE_GENERIC_WRITE (STD_RIGHT_READ_CONTROL_ACCESS|\
+ FILE_WRITE_DATA|\
+ FILE_WRITE_ATTRIBUTES|\
+ FILE_WRITE_EA|\
+ FILE_APPEND_DATA|\
+ SYNCHRONIZE_ACCESS)
+
+#define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE_ACCESS|\
+ FILE_READ_ATTRIBUTES|\
+ FILE_EXECUTE|\
+ SYNCHRONIZE_ACCESS)
/* Share specific rights. */
#define SHARE_ALL_ACCESS FILE_GENERIC_ALL