Merge #123005: apparmor: fix profile building on darwin
This commit is contained in:
commit
850880e854
@ -79,7 +79,8 @@ in stdenv.mkDerivation {
|
|||||||
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation";
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D -m 644 /dev/stdin $apparmor/bin.transmission-daemon <<EOF
|
mkdir $apparmor
|
||||||
|
cat >$apparmor/bin.transmission-daemon <<EOF
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
$out/bin/transmission-daemon {
|
$out/bin/transmission-daemon {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
@ -38,7 +38,8 @@ in stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ libcap ]
|
buildInputs = [ libcap ]
|
||||||
++ lib.optional (!stdenv.hostPlatform.isMusl) libidn2;
|
++ lib.optional (!stdenv.hostPlatform.isMusl) libidn2;
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D -m 644 /dev/stdin $apparmor/bin.ping <<EOF
|
mkdir $apparmor
|
||||||
|
cat >$apparmor/bin.ping <<EOF
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
$out/bin/ping {
|
$out/bin/ping {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
@ -46,7 +46,8 @@ stdenv.mkDerivation rec {
|
|||||||
installFlags = [ "SUIDMODE=" ];
|
installFlags = [ "SUIDMODE=" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D -m 644 /dev/stdin $apparmor/bin.ping <<EOF
|
mkdir $apparmor
|
||||||
|
cat >$apparmor/bin.ping <<EOF
|
||||||
$out/bin/ping {
|
$out/bin/ping {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user