feat(profile): add firewall-applet.
This commit is contained in:
parent
9be25c8498
commit
e9a5edb332
2 changed files with 57 additions and 0 deletions
28
apparmor.d/profiles-a-f/firewall-applet
Normal file
28
apparmor.d/profiles-a-f/firewall-applet
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/firewall-applet
|
||||||
|
profile firewall-applet @{exec_path} flags=(attach_disconnected) {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/dconf-write>
|
||||||
|
include <abstractions/desktop>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{bin}/ r,
|
||||||
|
@{bin}/python3.@{int} r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/cmdline r,
|
||||||
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
include if exists <local/firewall-applet>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
29
apparmor.d/profiles-a-f/firewall-config
Normal file
29
apparmor.d/profiles-a-f/firewall-config
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/firewall-config
|
||||||
|
profile firewall-config @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/dconf-write>
|
||||||
|
include <abstractions/desktop>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{open_path} rPx -> child-open-help,
|
||||||
|
|
||||||
|
/usr/share/firewalld/__pycache__/ rw,
|
||||||
|
|
||||||
|
/usr/share/firewalld/{,**} r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
include if exists <local/firewall-config>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
Loading…
Add table
Add a link
Reference in a new issue