esxi: have the fuse process drop its privileges

once it's mounted it only needs to make http requests and talk to the
open fuse fd

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2024-03-22 13:24:13 +01:00
parent 06a28968d8
commit 9bb651effa

View File

@ -215,6 +215,8 @@ sub esxi_mount : prototype($$$;$) {
exec {$ESXI_FUSE_TOOL}
$ESXI_FUSE_TOOL,
@extra_params,
'--change-user', 'nobody',
'--change-group', 'nogroup',
'-o', 'allow_other',
'--ready-fd', fileno($wr),
'--user', $user,