dissect: support mount options when going through mountfsd, requiring privileges via polkit (#39394)

RootImageOptions=/ExtensionImages=/MountImages= all support custom
mount options, but mountfsd does not support it. Add varlink
parameters to allow callers to specify mount options so that
those directives can work as expected. Require additional privs via
polkit.
This commit is contained in:
Luca Boccassi
2026-01-16 14:55:02 +00:00
committed by GitHub
11 changed files with 199 additions and 9 deletions
+1
View File
@@ -2190,6 +2190,7 @@ static int run(int argc, char *argv[]) {
r = mountfsd_mount_image(
arg_image,
userns_fd,
/* options= */ NULL,
arg_image_policy,
&arg_verity_settings,
arg_flags,