mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profile): add some network deps profile.
This commit is contained in:
parent
a777161846
commit
c0bab81e45
3 changed files with 41 additions and 0 deletions
20
apparmor.d/groups/network/netplan.script
Normal file
20
apparmor.d/groups/network/netplan.script
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# 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/share/netplan/netplan.script
|
||||||
|
profile netplan.script @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{lib}exec/netplan/generate rix,
|
||||||
|
|
||||||
|
/usr/share/netplan/{,**} r,
|
||||||
|
|
||||||
|
include if exists <local/netplan.script>
|
||||||
|
}
|
17
apparmor.d/groups/network/nm-online
Normal file
17
apparmor.d/groups/network/nm-online
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# 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} = @{bin}/nm-online
|
||||||
|
profile nm-online @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/dbus-strict>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/nm-online>
|
||||||
|
}
|
|
@ -33,6 +33,9 @@ apport complain
|
||||||
at-spi-bus-launcher attach_disconnected,complain
|
at-spi-bus-launcher attach_disconnected,complain
|
||||||
at-spi2-registryd attach_disconnected,complain
|
at-spi2-registryd attach_disconnected,complain
|
||||||
atd complain
|
atd complain
|
||||||
|
netplan complain
|
||||||
|
netplan.script complain
|
||||||
|
WebKitNetworkProcess attach_disconnected,complain
|
||||||
atril-previewer complain
|
atril-previewer complain
|
||||||
auditctl attach_disconnected,complain
|
auditctl attach_disconnected,complain
|
||||||
auditd attach_disconnected,complain
|
auditd attach_disconnected,complain
|
||||||
|
@ -235,6 +238,7 @@ needrestart attach_disconnected,complain
|
||||||
needrestart-iucode-scan-versions complain
|
needrestart-iucode-scan-versions complain
|
||||||
networkctl attach_disconnected,complain
|
networkctl attach_disconnected,complain
|
||||||
networkd-dispatcher complain
|
networkd-dispatcher complain
|
||||||
|
nm-online complain
|
||||||
nm-openvpn-service-openvpn-helper complain
|
nm-openvpn-service-openvpn-helper complain
|
||||||
nmap complain
|
nmap complain
|
||||||
nmcli complain
|
nmcli complain
|
||||||
|
|
Loading…
Reference in a new issue