summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-10-14 22:57:59 +0000
committerTim Potter <tpot@samba.org>2002-10-14 22:57:59 +0000
commit664a9bde0e41c7fc8b06fcfec81d56bcc2e10d1b (patch)
tree2f6593c33144a4017c72adc73c68e05a94057d1f /source3/include
parentfe0d3de7f2cfc316e5ebc27f3a074dda5322b4bc (diff)
downloadsamba-664a9bde0e41c7fc8b06fcfec81d56bcc2e10d1b.tar.gz
samba-664a9bde0e41c7fc8b06fcfec81d56bcc2e10d1b.tar.bz2
samba-664a9bde0e41c7fc8b06fcfec81d56bcc2e10d1b.zip
Tidyup of file specific access mask bits.
Added directory specific access mask bits. (This used to be commit edbd942a8d0edcb5e7cc3086c3d98c6ff1d6cd80)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index da83aaff47..e42bcb3319 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1075,20 +1075,25 @@ struct bitmap {
#define PIPE_RAW_MODE 0x4
#define PIPE_START_MESSAGE 0x8
-/* these are the constants used in the above call. */
-/* DesiredAccess */
-/* File Specific access rights. */
-#define FILE_READ_DATA 0x001
-#define FILE_WRITE_DATA 0x002
-#define FILE_APPEND_DATA 0x004
-#define FILE_READ_EA 0x008
-#define FILE_WRITE_EA 0x010
-#define FILE_EXECUTE 0x020
-#define FILE_DELETE_CHILD 0x040
-#define FILE_READ_ATTRIBUTES 0x080
-#define FILE_WRITE_ATTRIBUTES 0x100
-
-#define FILE_ALL_ACCESS 0x1FF
+/* File Specific access rights */
+#define FILE_READ_DATA 0x00000001
+#define FILE_WRITE_DATA 0x00000002
+#define FILE_APPEND_DATA 0x00000004
+#define FILE_READ_EA 0x00000008 /* File and directory */
+#define FILE_WRITE_EA 0x00000010 /* File and directory */
+#define FILE_EXECUTE 0x00000020
+#define FILE_DELETE_CHILD 0x00000040
+#define FILE_READ_ATTRIBUTES 0x00000080
+#define FILE_WRITE_ATTRIBUTES 0x00000100
+
+#define FILE_ALL_ACCESS 0x000001FF
+
+/* Directory specific access rights */
+#define FILE_LIST_DIRECTORY 0x00000001
+#define FILE_ADD_FILE 0x00000002
+#define FILE_ADD_SUBDIRECTORY 0x00000004
+#define FILE_TRAVERSE 0x00000020
+#define FILE_DELETE_CHILD 0x00000040
/* the desired access to use when opening a pipe */
#define DESIRED_ACCESS_PIPE 0x2019f