mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
core: insist on sandboxing if ExtensionImages/Directories are configured
Same as other image mounting in the namespace
This commit is contained in:
parent
827f865063
commit
4355c04fef
@ -3415,6 +3415,9 @@ static bool insist_on_sandboxing(
|
||||
if (context->dynamic_user)
|
||||
return true;
|
||||
|
||||
if (context->n_extension_images > 0 || !strv_isempty(context->extension_directories))
|
||||
return true;
|
||||
|
||||
/* If there are any bind mounts set that don't map back onto themselves, fs namespacing becomes
|
||||
* essential. */
|
||||
for (size_t i = 0; i < n_bind_mounts; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user