File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 367367 ./security/auditd.nix
368368 ./security/ca.nix
369369 ./security/chromium-suid-sandbox.nix
370+ ./security/default.nix
370371 ./security/dhparams.nix
371372 ./security/doas.nix
372373 ./security/duosec.nix
Original file line number Diff line number Diff line change 200200 sed '1,/\[qualifiers\]/d' $footer >> $out
201201 '' ;
202202
203- boot . kernelParams = [
204- "apparmor=1"
205- "security=apparmor"
206- ] ;
203+ security . lsm = [ "apparmor" ] ;
207204
208205 systemd . services . apparmor = {
209206 after = [
Original file line number Diff line number Diff line change 1+ { config , lib , ... } :
2+ let
3+ cfg = config . security ;
4+ in
5+ {
6+ options = {
7+ security . lsm = lib . mkOption {
8+ type = lib . types . listOf lib . types . str ;
9+ default = [ ] ;
10+ description = ''
11+ A list of the LSMs to initialize.
12+ '' ;
13+ } ;
14+ } ;
15+
16+ config = lib . mkIf ( lib . lists . length cfg . lsm > 0 ) {
17+ boot . kernelParams = [
18+ "lsm=${ lib . concatStringsSep "," cfg . lsm } "
19+ ] ;
20+ } ;
21+ }
You can’t perform that action at this time.
0 commit comments