]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: pass fsp to canonicalize_inheritance_bits()
authorRalph Boehme <slow@samba.org>
Tue, 25 May 2021 15:17:17 +0000 (17:17 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 27 May 2021 19:01:29 +0000 (19:01 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/nttrans.c

index ab9b2f06b4ff1e1f1aacd6ca28ec257fd094ca59..50e0a5f2f010179408260aed577035731c67b337 100644 (file)
@@ -947,7 +947,8 @@ static void do_nt_transact_create_pipe(connection_struct *conn,
  same.
 *********************************************************************/
 
-static void canonicalize_inheritance_bits(struct security_descriptor *psd)
+static void canonicalize_inheritance_bits(struct files_struct *fsp,
+                                         struct security_descriptor *psd)
 {
        bool set_auto_inherited = false;
 
@@ -1052,7 +1053,7 @@ NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd,
                }
        }
 
-       canonicalize_inheritance_bits(psd);
+       canonicalize_inheritance_bits(fsp, psd);
 
        if (DEBUGLEVEL >= 10) {
                DEBUG(10,("set_sd for file %s\n", fsp_str_dbg(fsp)));