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:
@@ -2621,6 +2621,7 @@ int setup_namespace(const NamespaceParameters *p, char **reterr_path) {
|
||||
r = mountfsd_mount_image(
|
||||
p->root_image,
|
||||
userns_fd,
|
||||
p->root_image_options,
|
||||
p->root_image_policy,
|
||||
p->verity,
|
||||
dissect_image_flags,
|
||||
|
||||
Reference in New Issue
Block a user