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

smbd: pass fsp to canonicalize_inheritance_bits()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-05-25 17:17:17 +02:00 committed by Jeremy Allison
parent 31ea8ea875
commit 86e0901392

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