diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2016-05-15 11:31:53 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2016-05-15 11:55:17 +0200 |
commit | b740e046ab42d6ce1c5a87762927eeb040d4cf10 (patch) | |
tree | f59a9f12d09dfe3ecebaab20c158b9d45da0b813 /nixos/modules/services/networking/dnscrypt-proxy.nix | |
parent | edaecb41db05b512614ca0be10782790ea86a149 (diff) |
dnscrypt-proxy service: robust lib references in apparmor profile
Use getLib to avoid future problems caused by re-ordering outputs.
Diffstat (limited to 'nixos/modules/services/networking/dnscrypt-proxy.nix')
-rw-r--r-- | nixos/modules/services/networking/dnscrypt-proxy.nix | 20 |
1 files 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, } |