aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-11-28 00:19:06 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-11-28 00:19:06 +0900
commit95668ac998b2212478df5a6114089fdf7e579f71 (patch)
treea16f020536bd5a440f03b3e2ba937802138aa46a
parentb291f0b71065a9dc18a956f741775806409e6dee (diff)
nix: expose no_new_session in module
Useful for shells and terminal programs like chat clients. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
-rw-r--r--nixos.nix1
-rw-r--r--options.md26
-rw-r--r--options.nix1
3 files changed, 27 insertions, 1 deletions
diff --git a/nixos.nix b/nixos.nix
index 3b35a5c7..5e5593d4 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -123,6 +123,7 @@ in
env
;
map_real_uid = app.mapRealUid;
+ no_new_session = app.tty;
filesystem =
[
{ src = "/bin"; }
diff --git a/options.md b/options.md
index 18acd565..391c6905 100644
--- a/options.md
+++ b/options.md
@@ -36,7 +36,7 @@ package
*Default:*
-` <derivation fortify-0.1.0> `
+` <derivation fortify-0.2.1> `
@@ -478,6 +478,30 @@ null or package
+## environment\.fortify\.apps\.\*\.tty
+
+
+
+Whether to enable allow access to the controlling terminal\.
+
+
+
+*Type:*
+boolean
+
+
+
+*Default:*
+` false `
+
+
+
+*Example:*
+` true `
+
+
+
+
## environment\.fortify\.apps\.\*\.userns
diff --git a/options.nix b/options.nix
index 5f0d67f9..adf19f4a 100644
--- a/options.nix
+++ b/options.nix
@@ -133,6 +133,7 @@ in
userns = mkEnableOption "userns within the sandbox";
mapRealUid = mkEnableOption "mapping to fortify's real UID within the sandbox";
dev = mkEnableOption "access to all devices within the sandbox";
+ tty = mkEnableOption "allow access to the controlling terminal";
net = mkEnableOption "network access within the sandbox" // {
default = true;