summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/ff/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-06-02 14:48:03 +0200
committerlassulus <lass@aidsballs.de>2016-06-02 14:48:03 +0200
commit5a2cdca7742a6988f61ca1420529d19f20c9eea8 (patch)
tree374e1261f36b76bf1d05a66897eb4cbda8444144 /tv/5pkgs/ff/default.nix
parent8fe85c4b9c301e1d09aaa1fe3a0bc479fb427064 (diff)
parent84c014d55f4242a5a9fac4e821e61283ed3d3418 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'tv/5pkgs/ff/default.nix')
-rw-r--r--tv/5pkgs/ff/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/tv/5pkgs/ff/default.nix b/tv/5pkgs/ff/default.nix
index 2db404030..b1d2c579a 100644
--- a/tv/5pkgs/ff/default.nix
+++ b/tv/5pkgs/ff/default.nix
@@ -1,8 +1,12 @@
{ pkgs, ... }:
-pkgs.writeScriptBin "ff" ''
- #! ${pkgs.bash}/bin/bash
- exec sudo -u ff -i <<EOF
+# TODO use krebs.setuid
+# This requires that we can create setuid executables that can only be accessed
+# by a single user. [per-user-setuid]
+
+# using bash for %q
+pkgs.writeBashBin "ff" ''
+ exec /var/setuid-wrappers/sudo -u ff -i <<EOF
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
EOF
''