Skip to content

Commit

Permalink
Merge #123005: apparmor: fix profile building on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed May 14, 2021
2 parents 803a164 + 8184d8b commit 850880e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkgs/applications/networking/p2p/transmission/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ in stdenv.mkDerivation {
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation";

postInstall = ''
install -D -m 644 /dev/stdin $apparmor/bin.transmission-daemon <<EOF
mkdir $apparmor
cat >$apparmor/bin.transmission-daemon <<EOF
include <tunables/global>
$out/bin/transmission-daemon {
include <abstractions/base>
Expand Down
3 changes: 2 additions & 1 deletion pkgs/os-specific/linux/iputils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ in stdenv.mkDerivation rec {
buildInputs = [ libcap ]
++ lib.optional (!stdenv.hostPlatform.isMusl) libidn2;
postInstall = ''
install -D -m 644 /dev/stdin $apparmor/bin.ping <<EOF
mkdir $apparmor
cat >$apparmor/bin.ping <<EOF
include <tunables/global>
$out/bin/ping {
include <abstractions/base>
Expand Down
3 changes: 2 additions & 1 deletion pkgs/tools/networking/inetutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ stdenv.mkDerivation rec {
installFlags = [ "SUIDMODE=" ];

postInstall = ''
install -D -m 644 /dev/stdin $apparmor/bin.ping <<EOF
mkdir $apparmor
cat >$apparmor/bin.ping <<EOF
$out/bin/ping {
include <abstractions/base>
include <abstractions/consoles>
Expand Down

0 comments on commit 850880e

Please sign in to comment.