Add no-die-with-parent combinator

This commit is contained in:
Alex David 2025-11-28 11:45:17 -08:00
commit 053e2c1364
9 changed files with 131 additions and 12 deletions

View file

@ -0,0 +1,15 @@
{ ... }:
{
sig = "Permission";
doc = ''
Disables `--die-with-parent`
By default, jail-nix includes the `--die-with-parent` bwrap flag which
kills all processes within this jail when the parent process dies. Use this
combinator if you don't want this behavior.
This may be useful if the software you are jailing forks a daemon and then
exits.
'';
impl = state: state // { dieWithParent = false; };
}