From: Jeremy Allison Date: Thu, 25 Nov 2004 00:59:44 +0000 (+0000) Subject: r3951: Fix for bugid #2081 reported by John Janosik - ensure X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5538 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=934c41b474c8959310389378bfa7d3332bd5ec79;p=thirdparty%2Fsamba.git r3951: Fix for bugid #2081 reported by John Janosik - ensure SE_DESC_DACL_PROTECTED is set if "map acl inherit = no". Jeremy. --- diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c index 7e20313b76c..d2e12fc82a9 100644 --- a/source/smbd/posix_acls.c +++ b/source/smbd/posix_acls.c @@ -2880,9 +2880,11 @@ size_t get_nt_acl(files_struct *fsp, uint32 security_info, SEC_DESC **ppdesc) * inherited at file create time, so ACLs never contain * any ACEs that are inherited dynamically. The DACL_PROTECTED * flag doesn't seem to bother Windows NT. + * Always set this if map acl inherit is turned off. */ - if (get_protected_flag(pal)) + if (get_protected_flag(pal) || !lp_map_acl_inherit(SNUM(conn))) { psd->type |= SE_DESC_DACL_PROTECTED; + } } if (psd->dacl)