Merge pull request #61306 from joachifm/feat/fix-apparmor-boot-linux_5_1

Fix apparmor boot on linux 5.1
This commit is contained in:
Joachim F
2019-05-12 15:17:38 +00:00
committed by GitHub
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ in
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.apparmor-utils ];
boot.kernelParams = [ "apparmor=1" "security=apparmor" ];
systemd.services.apparmor = let
paths = concatMapStrings (s: " -I ${s}/etc/apparmor.d")
([ pkgs.apparmor-profiles ] ++ cfg.packages);