summary refs log tree commit diff
path: root/nixos/modules/security/apparmor/profiles.nix
blob: 8eb630b5a48a5beef2ee2a45692162589af1a84a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ config, lib, pkgs, ... }:
let apparmor = config.security.apparmor; in
{
config.security.apparmor.packages = [ pkgs.apparmor-profiles ];
config.security.apparmor.policies."bin.ping".profile = lib.mkIf apparmor.policies."bin.ping".enable ''
  include "${pkgs.iputils.apparmor}/bin.ping"
  include "${pkgs.inetutils.apparmor}/bin.ping"
  # Note that including those two profiles in the same profile
  # would not work if the second one were to re-include <tunables/global>.
'';
}