Merge pull request #158360 from vs49688/firejail

firejail: 0.9.66 -> 0.9.68

authored by 7c6f434c and committed by GitHub 22127ef5 51c7e272

+15 -66
+2 -5
pkgs/os-specific/linux/firejail/default.nix
··· 11 11 12 12 stdenv.mkDerivation rec { 13 13 pname = "firejail"; 14 - version = "0.9.66"; 14 + version = "0.9.68"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "netblue30"; 18 18 repo = "firejail"; 19 19 rev = version; 20 - sha256 = "sha256-oKstTiGt0r4wePaZ9u1o78GZ1XWJ27aS0BdLxmfYk9Q="; 20 + sha256 = "18yy1mykx7h78yj7sz729i3dlsrgi25m17m5x9gbrvsx7f87rw7j"; 21 21 }; 22 22 23 23 nativeBuildInputs = [ ··· 40 40 # By default fbuilder hardcodes the firejail binary to the install path. 41 41 # On NixOS the firejail binary is a setuid wrapper available in $PATH. 42 42 ./fbuilder-call-firejail-on-path.patch 43 - # Disable symlink check on /etc/hosts, see 44 - # https://github.com/netblue30/firejail/issues/2758#issuecomment-805174951 45 - ./remove-link-check.patch 46 43 ]; 47 44 48 45 prePatch = ''
+9 -9
pkgs/os-specific/linux/firejail/fbuilder-call-firejail-on-path.patch
··· 1 1 --- a/src/fbuilder/build_profile.c 2 2 +++ b/src/fbuilder/build_profile.c 3 - @@ -67,7 +67,7 @@ 4 - errExit("asprintf"); 5 - 6 - char *cmdlist[] = { 7 - - BINDIR "/firejail", 8 - + "firejail", 9 - "--quiet", 10 - "--noprofile", 11 - "--caps.drop=all", 3 + @@ -48,7 +48,7 @@ 4 + // build command 5 + char *cmd[len]; 6 + unsigned curr_len = 0; 7 + - cmd[curr_len++] = BINDIR "/firejail"; 8 + + cmd[curr_len++] = "firejail"; 9 + cmd[curr_len++] = "--quiet"; 10 + cmd[curr_len++] = "--noprofile"; 11 + cmd[curr_len++] = "--caps.drop=all";
+4 -4
pkgs/os-specific/linux/firejail/mount-nix-dir-on-overlay.patch
··· 1 - --- a/src/firejail/fs.c 2 - +++ b/src/firejail/fs.c 3 - @@ -1143,6 +1143,16 @@ 1 + --- a/src/firejail/fs_overlayfs.c 2 + +++ b/src/firejail/fs_overlayfs.c 3 + @@ -327,6 +327,16 @@ 4 4 errExit("mounting /dev"); 5 5 fs_logger("whitelist /dev"); 6 6 ··· 17 17 // mount-bind run directory 18 18 if (arg_debug) 19 19 printf("Mounting /run\n"); 20 - @@ -1201,6 +1211,7 @@ 20 + @@ -384,6 +394,7 @@ 21 21 free(odiff); 22 22 free(owork); 23 23 free(dev);