Skip to content

Commit

Permalink
Merge pull request #96034 from saschagrunert/apparmor
Browse files Browse the repository at this point in the history
apparmor: add apparmor_parser config file
  • Loading branch information
joachifm authored Aug 28, 2020
2 parents 4ef92a3 + 2259fbd commit 18c52da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/modules/security/apparmor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ in
default = [];
description = "List of packages to be added to apparmor's include path";
};
parserConfig = mkOption {
type = types.str;
default = "";
description = "AppArmor parser configuration file content";
};
};
};

config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.apparmor-utils ];
environment.etc."apparmor/parser.conf".text = cfg.parserConfig;

boot.kernelParams = [ "apparmor=1" "security=apparmor" ];

Expand Down

0 comments on commit 18c52da

Please sign in to comment.