summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-05-23 20:47:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:58 -0500
commit4a494ccf768ea242013a42b8dac61655ca863df4 (patch)
tree28d85194e99ce5056488b5cc67b133320910b96c /source3/include/smb.h
parentdc993c13a823c910f342567e0e35465b7409dcf5 (diff)
downloadsamba-4a494ccf768ea242013a42b8dac61655ca863df4.tar.gz
samba-4a494ccf768ea242013a42b8dac61655ca863df4.tar.bz2
samba-4a494ccf768ea242013a42b8dac61655ca863df4.zip
r6946: Allow mapping of POSIX ACLs to NT perms to differentiate between directories
and files. Needed for Volker's coming changes. Jeremy. (This used to be commit b257744fdfd0a8d940ae834b3c21f0f298c7d1f9)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 41aaa317fd..35ae5723b0 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1110,6 +1110,12 @@ struct bitmap {
#define UNIX_ACCESS_W FILE_GENERIC_WRITE
#define UNIX_ACCESS_X FILE_GENERIC_EXECUTE
+/* Mapping of access rights to UNIX perms. for a UNIX directory. */
+#define UNIX_DIRECTORY_ACCESS_RWX FILE_GENERIC_ALL
+#define UNIX_DIRECTORY_ACCESS_R FILE_GENERIC_READ
+#define UNIX_DIRECTORY_ACCESS_W FILE_GENERIC_WRITE
+#define UNIX_DIRECTORY_ACCESS_X FILE_GENERIC_EXECUTE
+
#if 0
/*
* This is the old mapping we used to use. To get W2KSP2 profiles