CVE-2023-34968: mdssvc: cache and reuse stat info in struct sl_inode_path_map
authorRalph Boehme <slow@samba.org>
Tue, 6 Jun 2023 13:17:26 +0000 (15:17 +0200)
committerJule Anger <janger@samba.org>
Fri, 21 Jul 2023 12:05:35 +0000 (12:05 +0000)
commit02552493e37dc28f0aeff64ccc991c92eb517d1e
treeffb1b9f4d2168eaf5eb2baf701c3b95ab7dc000c
parent4c60e35add4a1abd04334012a8d6edf1c3f396ba
CVE-2023-34968: mdssvc: cache and reuse stat info in struct sl_inode_path_map

Prepare for the "path" being a fake path and not the real server-side
path where we won't be able to vfs_stat_fsp() this fake path. Luckily we already
got stat info for the object in mds_add_result() so we can just pass stat info
from there.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/mdssvc/mdssvc.c
source3/rpc_server/mdssvc/mdssvc.h