apparmor: Fix service stop
When stopping the apparmor service, the profile removal failed with parsing errors due to not including the ${pkgs.apparmor}/etc/apparmor.d directory.
This commit is contained in:
parent
84c0af80d7
commit
531b581636
|
@ -57,7 +57,7 @@ with pkgs.lib;
|
||||||
''${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…
Reference in New Issue