mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(opensuse): add firewalld
This commit is contained in:
parent
35fcb6fc71
commit
5bc4860c39
1 changed files with 45 additions and 0 deletions
45
apparmor.d/profiles-a-f/firewalld
Normal file
45
apparmor.d/profiles-a-f/firewalld
Normal file
|
@ -0,0 +1,45 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}{s,}bin/firewalld
|
||||
profile firewalld @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability net_admin,
|
||||
capability net_raw,
|
||||
|
||||
network inet raw,
|
||||
network inet6 raw,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}{s,}bin/ r,
|
||||
/{usr/,}{s,}bin/kmod rPx,
|
||||
/{usr/,}{s,}bin/xtables-legacy-multi rix,
|
||||
/{usr/,}bin/alts rix,
|
||||
|
||||
/usr/share/libalternatives/ r,
|
||||
/usr/share/libalternatives/ip{,4,6}tables*/{,*} r,
|
||||
|
||||
/etc/firewalld/{,**} r,
|
||||
/etc/iproute2/group r,
|
||||
/etc/iproute2/rt_realms r,
|
||||
|
||||
/var/log/firewalld rw,
|
||||
|
||||
@{run}/firewalld/{,*} rw,
|
||||
@{run}/xtables.lock rwk,
|
||||
|
||||
@{PROC}/sys/kernel/modprobe r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
include if exists <local/firewalld>
|
||||
}
|
Loading…
Reference in a new issue