1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3 OneFS: Expand the usage of the ignore sacl parameter

This commit is contained in:
todd stecher 2009-02-11 09:52:02 -08:00 committed by Tim Prouty
parent 4e1a4cbe1f
commit 1884b92872
2 changed files with 11 additions and 0 deletions

View File

@ -619,6 +619,12 @@ onefs_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
DEBUG(5, ("Getting sd for file %s. security_info=%u\n",
fsp->fsp_name, security_info));
if (lp_parm_bool(SNUM(fsp->conn), PARM_ONEFS_TYPE,
PARM_IGNORE_SACL, PARM_IGNORE_SACL_DEFAULT)) {
DEBUG(5, ("Ignoring SACL on %s.\n", fsp->fsp_name));
security_info &= ~SACL_SECURITY_INFORMATION;
}
if (fsp->fh->fd == -1) {
if ((fsp->fh->fd = onefs_sys_create_file(handle->conn,
-1,

View File

@ -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));