# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2020-2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ abi , include @{exec_path} = /{usr/,}bin/fping{,6} profile fping @{exec_path} { include include # 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 }