From 5bc4860c39511071535876ff8b05b100fd95190a Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 4 Feb 2023 23:44:46 +0000 Subject: [PATCH] feat(opensuse): add firewalld --- apparmor.d/profiles-a-f/firewalld | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 apparmor.d/profiles-a-f/firewalld diff --git a/apparmor.d/profiles-a-f/firewalld b/apparmor.d/profiles-a-f/firewalld new file mode 100644 index 00000000..5fdc511b --- /dev/null +++ b/apparmor.d/profiles-a-f/firewalld @@ -0,0 +1,45 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}{s,}bin/firewalld +profile firewalld @{exec_path} { + include + include + + 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 +} \ No newline at end of file