mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
wrapper-manager/sandboxing/bubblewrap: add option for ensuring dying with parent
This commit is contained in:
parent
34f086a6a5
commit
971d786b81
@ -45,6 +45,10 @@ let
|
|||||||
enableIsolation = lib.mkEnableOption "unsharing most of the system" // {
|
enableIsolation = lib.mkEnableOption "unsharing most of the system" // {
|
||||||
default = if isGlobal then true else cfg.enableIsolation;
|
default = if isGlobal then true else cfg.enableIsolation;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableEnsureChildDiesWithParent = lib.mkEnableOption "ensuring child processes die with parent" // {
|
||||||
|
default = if isGlobal then true else cfg.enableEnsureChildDiesWithParent;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -104,6 +108,9 @@ in
|
|||||||
(lib.mkIf submoduleCfg.enableIsolation {
|
(lib.mkIf submoduleCfg.enableIsolation {
|
||||||
sandboxing.bubblewrap.extraArgs = lib.mkBefore [ "--unshare-all" ];
|
sandboxing.bubblewrap.extraArgs = lib.mkBefore [ "--unshare-all" ];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(lib.mkIf submoduleCfg.enableEnsureChildDiesWithParent {
|
||||||
|
sandboxing.bubblewrap.extraArgs = lib.mkBefore [ "--die-with-parent" ];
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user