2023-02-05 00:44:46 +01:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
2023-02-05 00:44:46 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{bin}/firewalld
|
2024-07-14 13:56:37 +02:00
|
|
|
profile firewalld @{exec_path} flags=(attach_disconnected) {
|
2023-02-05 00:44:46 +01:00
|
|
|
include <abstractions/base>
|
2024-07-19 20:22:32 +02:00
|
|
|
include <abstractions/app/kmod>
|
2024-02-21 23:52:26 +01:00
|
|
|
include <abstractions/bus-session>
|
|
|
|
include <abstractions/bus-system>
|
|
|
|
include <abstractions/bus/org.freedesktop.NetworkManager>
|
2024-07-19 20:22:32 +02:00
|
|
|
include <abstractions/bus/org.freedesktop.PolicyKit1>
|
2023-02-05 00:44:46 +01:00
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
|
2024-07-14 13:56:37 +02:00
|
|
|
capability dac_read_search,
|
2023-03-10 11:20:48 +01:00
|
|
|
capability mknod,
|
2023-02-05 00:44:46 +01:00
|
|
|
capability net_admin,
|
|
|
|
capability net_raw,
|
2023-03-10 11:20:48 +01:00
|
|
|
capability setpcap,
|
2024-07-14 13:56:37 +02:00
|
|
|
capability sys_module,
|
2023-02-05 00:44:46 +01:00
|
|
|
|
|
|
|
network inet raw,
|
|
|
|
network inet6 raw,
|
|
|
|
network netlink raw,
|
|
|
|
|
2024-03-22 00:03:08 +01:00
|
|
|
#aa:dbus own bus=system name=org.fedoraproject.FirewallD1
|
2024-03-15 16:03:42 +01:00
|
|
|
|
2023-02-05 00:44:46 +01:00
|
|
|
@{exec_path} mr,
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/ r,
|
|
|
|
@{bin}/alts rix,
|
|
|
|
@{bin}/ebtables-legacy rix,
|
|
|
|
@{bin}/ebtables-legacy-restore rix,
|
|
|
|
@{bin}/false rix,
|
|
|
|
@{bin}/ipset rix,
|
2024-07-16 16:25:02 +02:00
|
|
|
@{bin}/kmod rix,
|
2024-07-19 20:22:32 +02:00
|
|
|
@{bin}/modprobe rix,
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/xtables-legacy-multi rix,
|
|
|
|
@{bin}/xtables-nft-multi rix,
|
2023-02-05 00:44:46 +01:00
|
|
|
|
2024-07-16 16:25:02 +02:00
|
|
|
/usr/local/lib/python3.@{int}/dist-packages/ r,
|
2024-02-21 23:52:26 +01:00
|
|
|
|
2024-08-20 21:56:58 +02:00
|
|
|
/usr/share/iproute2/{,**} r,
|
|
|
|
/usr/share/libalternatives/{,**} r,
|
2023-02-05 00:44:46 +01:00
|
|
|
|
2024-04-28 14:50:48 +02:00
|
|
|
/etc/firewalld/{,**} rw,
|
2023-02-05 00:44:46 +01:00
|
|
|
/etc/iproute2/group r,
|
|
|
|
/etc/iproute2/rt_realms r,
|
|
|
|
|
2023-04-24 19:58:58 +02:00
|
|
|
/var/lib/ebtables/lock rwk,
|
|
|
|
|
2023-02-05 00:44:46 +01:00
|
|
|
/var/log/firewalld rw,
|
|
|
|
|
|
|
|
@{run}/firewalld/{,*} rw,
|
2024-07-16 16:25:02 +02:00
|
|
|
@{run}/modprobe.d/{,*.conf} r,
|
2023-02-05 00:44:46 +01:00
|
|
|
@{run}/xtables.lock rwk,
|
|
|
|
|
2024-07-16 16:25:02 +02:00
|
|
|
@{sys}/module/compression r,
|
2024-07-20 14:13:27 +02:00
|
|
|
@{sys}/module/*/initstate r,
|
2024-07-16 16:25:02 +02:00
|
|
|
|
2023-02-05 00:44:46 +01:00
|
|
|
@{PROC}/sys/kernel/modprobe r,
|
2023-04-24 19:58:58 +02:00
|
|
|
@{PROC}/sys/net/ipv{4,6}/ip_forward rw,
|
2023-02-05 00:44:46 +01:00
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
2023-03-10 11:20:48 +01:00
|
|
|
owner @{PROC}/@{pids}/net/ip_tables_names r,
|
2023-02-05 00:44:46 +01:00
|
|
|
|
|
|
|
include if exists <local/firewalld>
|
2024-06-15 16:13:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:syntax=apparmor
|