Merge pull request #96034 from saschagrunert/apparmor
apparmor: add apparmor_parser config file
This commit is contained in:
commit
18c52dadfe
1 changed files with 6 additions and 0 deletions
|
@ -23,11 +23,17 @@ in
|
||||||
default = [];
|
default = [];
|
||||||
description = "List of packages to be added to apparmor's include path";
|
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 {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [ pkgs.apparmor-utils ];
|
environment.systemPackages = [ pkgs.apparmor-utils ];
|
||||||
|
environment.etc."apparmor/parser.conf".text = cfg.parserConfig;
|
||||||
|
|
||||||
boot.kernelParams = [ "apparmor=1" "security=apparmor" ];
|
boot.kernelParams = [ "apparmor=1" "security=apparmor" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue