Merge pull request #173 from wizeman/apparmor-service

Apparmor service fixes
This commit is contained in:
Evgeny Egorochkin 2013-05-28 16:46:30 -07:00
commit 421fb9d585

View File

@ -53,12 +53,12 @@ with pkgs.lib;
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "yes";
ExecStart = concatMapStrings (profile: ''
${pkgs.apparmor}/sbin/apparmor_parser -rKv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}"
'') cfg.profiles;
ExecStop = concatMapStrings (profile: ''
${pkgs.apparmor}/sbin/apparmor_parser -Rv "${profile}"
'') cfg.profiles;
ExecStart = concatMapStrings (profile:
''${pkgs.apparmor}/sbin/apparmor_parser -rKv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}" ; ''
) cfg.profiles;
ExecStop = concatMapStrings (profile:
''${pkgs.apparmor}/sbin/apparmor_parser -Rv -I ${pkgs.apparmor}/etc/apparmor.d/ "${profile}" ; ''
) cfg.profiles;
};
};