Merge pull request #173 from wizeman/apparmor-service
Apparmor service fixes
This commit is contained in:
commit
421fb9d585
@ -53,12 +53,12 @@ with pkgs.lib;
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
ExecStart = concatMapStrings (profile: ''
|
ExecStart = concatMapStrings (profile:
|
||||||
${pkgs.apparmor}/sbin/apparmor_parser -rKv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}"
|
''${pkgs.apparmor}/sbin/apparmor_parser -rKv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}" ; ''
|
||||||
'') cfg.profiles;
|
) cfg.profiles;
|
||||||
ExecStop = concatMapStrings (profile: ''
|
ExecStop = concatMapStrings (profile:
|
||||||
${pkgs.apparmor}/sbin/apparmor_parser -Rv "${profile}"
|
''${pkgs.apparmor}/sbin/apparmor_parser -Rv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}" ; ''
|
||||||
'') cfg.profiles;
|
) cfg.profiles;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user