update profiles for apparmor3

This commit is contained in:
Mikhail Morfikov 2020-12-10 22:33:39 +01:00
parent 503cf496bf
commit 7067edcf70
No known key found for this signature in database
GPG key ID: 32D9CB634796CCA1
776 changed files with 6867 additions and 5199 deletions

View file

@ -9,15 +9,15 @@
#
# ------------------------------------------------------------------
#abi <abi/3.0>,
abi <abi/3.0>,
#include <tunables/global>
include <tunables/global>
# When "ip netns" is issued, the following error will be printed:
# "Failed name lookup - disconnected path" error=-13 profile="ip" name="".
@{exec_path} = /{usr/,}bin/ip
profile ip @{exec_path} flags=(attach_disconnected) {
#include <abstractions/base>
include <abstractions/base>
# To be able to manage network interfaces.
capability net_admin,
@ -27,6 +27,8 @@ profile ip @{exec_path} flags=(attach_disconnected) {
# Needed?
audit deny capability sys_module,
network netlink raw,
@{exec_path} mrix,
mount options=(rw, rshared) -> /{var/,}run/netns/,
@ -50,5 +52,5 @@ profile ip @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/@{pid}/net/igmp{,6} r,
owner @{PROC}/sys/net/ipv{4,6}/route/flush w,
#include if exists <local/ip>
include if exists <local/ip>
}