mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(kde): add kauth helper.
This commit is contained in:
parent
1a09d74df3
commit
4f22a6ebaa
@ -44,7 +44,7 @@ profile dbus-daemon @{exec_path} flags=(attach_disconnected) {
|
||||
@{libexec}/kf5/kiod5 rPUx,
|
||||
/{usr/,}bin/ r,
|
||||
/{usr/,}bin/[a-z0-9]* rPUx,
|
||||
/{usr/,}lib{,exec}/dbus-1.0/dbus-daemon-launch-helper rPx,
|
||||
/{usr/,}lib{,exec}/dbus-1*/dbus-daemon-launch-helper rPx,
|
||||
/{usr/,}lib/@{multiarch}/tumbler-1/tumblerd rPUx,
|
||||
/{usr/,}lib/@{multiarch}/xfce4/xfconf/xfconfd rPUx,
|
||||
/{usr/,}lib/ibus/ibus-* rPx,
|
||||
|
@ -19,13 +19,13 @@ profile dbus-daemon-launch-helper @{exec_path} {
|
||||
@{exec_path} mr,
|
||||
|
||||
@{libexec}/{,cups-pk-helper/}cups-pk-helper-mechanism rPx,
|
||||
@{libexec}/kauth/backlighthelper rPx,
|
||||
@{libexec}/kauth/chargethresholdhelper rPx,
|
||||
@{libexec}/kauth/discretegpuhelper rPx,
|
||||
@{libexec}/kauth/kded-smart-helper rPx,
|
||||
@{libexec}/language-selector/ls-dbus-backend rPx,
|
||||
/{usr/,}lib/@{multiarch}/cups-pk-helper-mechanism rPx,
|
||||
/{usr/,}lib/software-properties/software-properties-dbus rPx,
|
||||
/{usr/,}lib/kauth/discretegpuhelper rPUx, # TODO: rPx,
|
||||
/{usr/,}lib/kauth/chargethresholdhelper rPUx, # TODO: rPx,
|
||||
/{usr/,}lib/kauth/backlighthelper rPUx, # TODO: rPx,
|
||||
/{usr/,}lib/kauth/kded-smart-helper rPUx, # TODO: rPx,
|
||||
|
||||
/usr/share/org.gnome.Characters/org.gnome.Characters.BackgroundService rPx,
|
||||
/usr/share/usb-creator/usb-creator-helper rPx,
|
||||
|
24
apparmor.d/groups/kde/kauth-backlighthelper
Normal file
24
apparmor.d/groups/kde/kauth-backlighthelper
Normal file
@ -0,0 +1,24 @@
|
||||
# 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} = @{libexec}/kauth/backlighthelper
|
||||
profile kauth-backlighthelper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/class/backlight/ r,
|
||||
@{sys}/class/leds/ r,
|
||||
|
||||
/dev/tty r,
|
||||
|
||||
include if exists <local/kauth-backlighthelper>
|
||||
}
|
19
apparmor.d/groups/kde/kauth-chargethresholdhelper
Normal file
19
apparmor.d/groups/kde/kauth-chargethresholdhelper
Normal file
@ -0,0 +1,19 @@
|
||||
# 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} = @{libexec}/kauth/chargethresholdhelper
|
||||
profile kauth-chargethresholdhelper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/class/power_supply/ r,
|
||||
|
||||
include if exists <local/kauth-chargethresholdhelper>
|
||||
}
|
17
apparmor.d/groups/kde/kauth-discretegpuhelper
Normal file
17
apparmor.d/groups/kde/kauth-discretegpuhelper
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} = @{libexec}/kauth/discretegpuhelper
|
||||
profile kauth-discretegpuhelper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/kauth-discretegpuhelper>
|
||||
}
|
19
apparmor.d/groups/kde/kauth-kded-smart-helper
Normal file
19
apparmor.d/groups/kde/kauth-kded-smart-helper
Normal file
@ -0,0 +1,19 @@
|
||||
# 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} = @{libexec}/kauth/kded-smart-helper
|
||||
profile kauth-kded-smart-helper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}{s,}bin/smartctl rPx,
|
||||
|
||||
include if exists <local/kauth-kded-smart-helper>
|
||||
}
|
@ -128,6 +128,10 @@ irqbalance complain
|
||||
iwctl complain
|
||||
iwd complain
|
||||
kaccess complain
|
||||
kauth-backlighthelper complain
|
||||
kauth-chargethresholdhelper complain
|
||||
kauth-discretegpuhelper complain
|
||||
kauth-kded-smart-helper complain
|
||||
kernel-install complain
|
||||
kgx complain
|
||||
kmod attach_disconnected,complain
|
||||
|
Loading…
Reference in New Issue
Block a user