From b740e046ab42d6ce1c5a87762927eeb040d4cf10 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 15 May 2016 11:31:53 +0200 Subject: [PATCH] dnscrypt-proxy service: robust lib references in apparmor profile Use getLib to avoid future problems caused by re-ordering outputs. --- .../services/networking/dnscrypt-proxy.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/networking/dnscrypt-proxy.nix b/nixos/modules/services/networking/dnscrypt-proxy.nix index eb43e83c95f0..bb0dc756ba47 100644 --- a/nixos/modules/services/networking/dnscrypt-proxy.nix +++ b/nixos/modules/services/networking/dnscrypt-proxy.nix @@ -162,7 +162,7 @@ in /etc/group r, ${config.environment.etc."nsswitch.conf".source} r, - ${pkgs.glibc.out}/lib/*.so mr, + ${getLib pkgs.glibc}/lib/*.so mr, ${pkgs.tzdata}/share/zoneinfo/** r, network inet stream, @@ -170,15 +170,15 @@ in network inet dgram, network inet6 dgram, - ${pkgs.gcc.cc.lib}/lib/libssp.so.* mr, - ${pkgs.libsodium.out}/lib/libsodium.so.* mr, - ${pkgs.systemd}/lib/libsystemd.so.* mr, - ${pkgs.xz.out}/lib/liblzma.so.* mr, - ${pkgs.libgcrypt.out}/lib/libgcrypt.so.* mr, - ${pkgs.libgpgerror.out}/lib/libgpg-error.so.* mr, - ${pkgs.libcap.lib}/lib/libcap.so.* mr, - ${pkgs.lz4}/lib/liblz4.so.* mr, - ${pkgs.attr.out}/lib/libattr.so.* mr, + ${getLib pkgs.gcc.cc}/lib/libssp.so.* mr, + ${getLib pkgs.libsodium}/lib/libsodium.so.* mr, + ${getLib pkgs.systemd}/lib/libsystemd.so.* mr, + ${getLib pkgs.xz}/lib/liblzma.so.* mr, + ${getLib pkgs.libgcrypt}/lib/libgcrypt.so.* mr, + ${getLib pkgs.libgpgerror}/lib/libgpg-error.so.* mr, + ${getLib pkgs.libcap}/lib/libcap.so.* mr, + ${getLib pkgs.lz4}/lib/liblz4.so.* mr, + ${getLib pkgs.attr}/lib/libattr.so.* mr, ${cfg.resolverList} r, }