smbd: set fsp_flags.is_fsa to true on printer file handles
authorRalph Boehme <slow@samba.org>
Thu, 21 Dec 2023 15:27:42 +0000 (16:27 +0100)
committerJule Anger <janger@samba.org>
Tue, 16 Jan 2024 09:09:15 +0000 (09:09 +0000)
commitd87294724e6066870346ff90b16c76fcfd294b9c
tree9e9d65990e7e851eaacb23c64dbcb6b7438e2e2a
parentc8e1d26cea525c6d0642923bf1b5196813145744
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 76c8fe16bff36a29fa326355256b50737d04bd85)
source3/printing/printspoolss.c