vfs: Only call openat for valid params in fake_acls_stat
commitdade2981c3558242086599a2435bb795160b1f67
authorVolker Lendecke <vl@samba.org>
Mon, 11 Nov 2024 16:50:03 +0000 (11 17:50 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 13:44:32 +0000 (12 13:44 +0000)
treeaf84a353577ecbf746b54625e8f976a46db5895c
parent142a78eb24a7fb62ca52ca76d878fd19f5caeed9
vfs: Only call openat for valid params in fake_acls_stat

openat(-1, "relative path", ..) is invalid. I've tried to also tighten
this down to just relative paths (i.e. base_name[0] != '/'), but
non_widelink_open makes modifications further down that make this more
difficult.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fake_acls.c