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

smbd: set fsp_flags.is_fsa to true on printer file handles

Printer file handles went through SMB_VFS_CREATE_FILE() and are network
callable, so it makes sense to set this on them.

This ensures that check_access_fsp() doesn't take the codepath calling
smbd_check_access_rights_fsp(), but just checks the request rights from
fsp->access_mask.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13688

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 76c8fe16bf)
This commit is contained in:
Ralph Boehme 2023-12-21 16:27:42 +01:00 committed by Jule Anger
parent c8e1d26cea
commit d87294724e

View File

@ -244,6 +244,7 @@ NTSTATUS print_spool_open(files_struct *fsp,
fsp->sent_oplock_break = NO_BREAK_SENT;
fsp->fsp_flags.is_directory = false;
fsp->fsp_flags.delete_on_close = false;
fsp->fsp_flags.is_fsa = true;
fsp->print_file = pf;