diff options
author | snicket2100 <57048005+snicket2100@users.noreply.github.com> | 2020-11-21 13:16:51 +0100 |
---|---|---|
committer | snicket2100 <57048005+snicket2100@users.noreply.github.com> | 2020-11-22 13:35:09 +0100 |
commit | ffeb2af9209b25c367fd39a7f693188e3715e51b (patch) | |
tree | 6afa109f26dbca33d5d73f86c072abe0e581b99c /pkgs | |
parent | 48c25e5dc9b00397feae456c607b33d68dbcaa7f (diff) | |
download | nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar.gz nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar.bz2 nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar.lz nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar.xz nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.tar.zst nixpkgs-ffeb2af9209b25c367fd39a7f693188e3715e51b.zip |
firejail: fixing the 'xdg-dbus-proxy' dependency
xdg-dbus-proxy path is hardcoded in the common.h file in the firejail source code. if this binary is not found, dbus filtering capabilities of firejail get limited i.e. you can only entirely disable or entirely enable dbus communication.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/firejail/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/firejail/default.nix b/pkgs/os-specific/linux/firejail/default.nix index 497314a6d44..fadf5df7140 100644 --- a/pkgs/os-specific/linux/firejail/default.nix +++ b/pkgs/os-specific/linux/firejail/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, fetchpatch, which, nixosTests}: +{stdenv, fetchurl, fetchpatch, which, xdg-dbus-proxy, nixosTests}: let s = # Generated upstream information rec { @@ -25,6 +25,10 @@ stdenv.mkDerivation { substituteInPlace etc/firejail.config --replace \ '# follow-symlink-as-user yes' \ 'follow-symlink-as-user no' + + # Fix the path to 'xdg-dbus-proxy' hardcoded in the 'common.h' file + substituteInPlace src/include/common.h \ + --replace '/usr/bin/xdg-dbus-proxy' '${xdg-dbus-proxy}/bin/xdg-dbus-proxy' ''; preConfigure = '' |