mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
smbd: check for valid FSA fsp in smb_set_posix_acl()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1bc943ddf3
commit
9535af3646
@ -7568,7 +7568,7 @@ static NTSTATUS smb_set_posix_acl(connection_struct *conn,
|
||||
* Ensure we always operate on a file descriptor, not just
|
||||
* the filename.
|
||||
*/
|
||||
if (fsp == NULL) {
|
||||
if (fsp == NULL || !fsp->fsp_flags.is_fsa) {
|
||||
uint32_t access_mask = SEC_STD_WRITE_OWNER|
|
||||
SEC_STD_WRITE_DAC|
|
||||
SEC_STD_READ_CONTROL|
|
||||
|
Loading…
x
Reference in New Issue
Block a user