diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix index f2e28a167ef2..84da5643004f 100644 --- a/nixos/modules/config/malloc.nix +++ b/nixos/modules/config/malloc.nix @@ -100,7 +100,10 @@ in "abstractions/base" = '' r /etc/ld-nix.so.preload, r ${config.environment.etc."ld-nix.so.preload".source}, - mr ${providerLibPath}, + include "${pkgs.apparmorRulesFromClosure { + name = "mallocLib"; + baseRules = ["mr $path/lib/**.so*"]; + } [ mallocLib ] }" ''; }; };