feat(profile): add kreadconfig5 & some network integration.

See: #134
This commit is contained in:
Alexandre Pujol 2023-03-28 22:11:12 +01:00
parent aaa24f644b
commit df792530cd
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
5 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,23 @@
# 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/,}bin/kreadconfig5
profile kreadconfig @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/usr/share/icu/{,**} r,
/etc/xdg/kdeglobals r,
owner @{user_config_dirs}/kdedefaults/kdeglobals r,
owner @{user_config_dirs}/kdeglobals r,
include if exists <local/kreadconfig>
}

View File

@ -92,6 +92,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/nft rix,
/{usr/,}{s,}bin/netconfig rPUx,
/{usr/,}bin/dnsmasq rPx,
/{usr/,}bin/kmod rPx,
/{usr/,}bin/resolvconf rPx,

View File

@ -64,7 +64,7 @@ profile openvpn @{exec_path} {
@{run}/openvpn/*.{pid,status} rw,
@{run}/NetworkManager/nm-openvpn-@{uuid} rw,
/{usr/,}bin/ip rix,
/{usr/,}{s,}bin/ip rix,
/{usr/,}bin/systemd-ask-password rPx,
/{usr/,}lib/nm-openvpn-service-openvpn-helper rPx,
/etc/openvpn/force-user-traffic-via-vpn.sh rCx -> force-user-traffic-via-vpn,

View File

@ -24,11 +24,14 @@ profile firewalld @{exec_path} {
@{exec_path} mr,
/{usr/,}{s,}bin/ r,
/{usr/,}{s,}bin/ebtables-legacy rix,
/{usr/,}{s,}bin/ebtables-legacy-restore rix,
/{usr/,}{s,}bin/ipset rix,
/{usr/,}{s,}bin/kmod rPx,
/{usr/,}{s,}bin/xtables-legacy-multi rix,
/{usr/,}{s,}bin/xtables-nft-multi rix,
/{usr/,}bin/false rix,
/{usr/,}bin/alts rix,
/{usr/,}bin/false rix,
/usr/share/libalternatives/ r,
/usr/share/libalternatives/ip{,4,6}tables*/{,*} r,

View File

@ -84,6 +84,7 @@ profile sddm @{exec_path} {
# SDDM scripts
# What to do with it? (#FIXME#)
/usr/etc/X11/xdm/Xsetup rPUx,
/usr/share/sddm/scripts/Xsetup rPUx,
/usr/share/sddm/scripts/Xstop rPUx,
/usr/share/sddm/scripts/wayland-session rPUx,