mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +01:00
27 lines
673 B
Text
27 lines
673 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/fping{,6}
|
|
profile fping @{exec_path} {
|
|
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,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet raw,
|
|
network inet6 raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
include if exists <local/fping>
|
|
}
|