Merge pull request #96034 from saschagrunert/apparmor
apparmor: add apparmor_parser config file
commit18c52dadfe12468a2ce166dce6ab145ac5175c5c
authorJoachim F <joachifm@users.noreply.github.com>
dateFri 28 Aug 2020, 08:08 (6 years ago)
parent4ef92a32259fbd
nixos/modules/security/apparmor.nix+6
@@ -23,11 +23,17 @@ in
2323 default = [];
2424 description = "List of packages to be added to apparmor's include path";
2525 };
26+ parserConfig = mkOption {
27+ type = types.str;
28+ default = "";
29+ description = "AppArmor parser configuration file content";
30+ };
2631 };
2732 };
2833
2934 config = mkIf cfg.enable {
3035 environment.systemPackages = [ pkgs.apparmor-utils ];
36+ environment.etc."apparmor/parser.conf".text = cfg.parserConfig;
3137
3238 boot.kernelParams = [ "apparmor=1" "security=apparmor" ];
3339