summaryrefslogtreecommitdiff
path: root/source3/modules/onefs_open.c
diff options
context:
space:
mode:
authortodd stecher <todd.stecher@gmail.com>2009-02-11 09:52:02 -0800
committerTim Prouty <tprouty@samba.org>2009-02-11 12:26:47 -0800
commit1884b928723e362250272f6986fb08fcee57ebc1 (patch)
tree2e2a08db579cda2ffac093ba4c57e09da60b054f /source3/modules/onefs_open.c
parent4e1a4cbe1f939f771554fa313eaf905fd72c2ff9 (diff)
downloadsamba-1884b928723e362250272f6986fb08fcee57ebc1.tar.gz
samba-1884b928723e362250272f6986fb08fcee57ebc1.tar.bz2
samba-1884b928723e362250272f6986fb08fcee57ebc1.zip
s3 OneFS: Expand the usage of the ignore sacl parameter
Diffstat (limited to 'source3/modules/onefs_open.c')
-rw-r--r--source3/modules/onefs_open.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c
index b2b11ebaac..e335dc7e28 100644
--- a/source3/modules/onefs_open.c
+++ b/source3/modules/onefs_open.c
@@ -744,6 +744,11 @@ NTSTATUS onefs_open_file_ntcreate(connection_struct *conn,
open_access_mask |= FILE_WRITE_DATA;
}
+ if (lp_parm_bool(SNUM(fsp->conn), PARM_ONEFS_TYPE,
+ PARM_IGNORE_SACL, PARM_IGNORE_SACL_DEFAULT)) {
+ access_mask &= ~SYSTEM_SECURITY_ACCESS;
+ }
+
DEBUG(10, ("onefs_open_file_ntcreate: fname=%s, after mapping "
"open_access_mask=%#x, access_mask=0x%x\n",
fname, open_access_mask, access_mask));