apparmor.d/profiles/fping

28 lines
673 B
Text
Raw Normal View History

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/fping{,6}
profile fping @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/nameservice-strict>
# This CAP can be blocked when the net.ipv4.ping_group_range sysctl parametr is set. Otherwise it
# will return the following error:
# fping: can't create socket (must run as root?)
deny capability net_raw,
2020-12-10 22:33:39 +01:00
network inet dgram,
network inet6 dgram,
network inet raw,
network inet6 raw,
@{exec_path} mr,
2020-12-10 22:33:39 +01:00
include if exists <local/fping>
}