Skip to content

Commit

Permalink
firejail: override files should be in /etc/firejail
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Oct 3, 2018
1 parent 46651b8 commit 04bbb2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/os-specific/linux/firejail/default.nix
Expand Up @@ -37,6 +37,14 @@ stdenv.mkDerivation {
sed -e "s@/etc/@$out/etc/@g" -e "/chmod u+s/d" -i Makefile
'';

# We need to set the directory for the .local override files back to
# /etc/firejail so we can actually override them
postInstall = ''
sed -E -e 's@^include (.*)(/firejail/.*.local)$@include /etc\2@g' -i $out/etc/firejail/*.profile
'';

enableParallelBuilding = true;

meta = {
inherit (s) version;
description = ''Namespace-based sandboxing tool for Linux'';
Expand Down

0 comments on commit 04bbb2a

Please sign in to comment.