feat(dbus): add initial polkit abstraction.

This commit is contained in:
Alexandre Pujol 2023-12-01 20:42:41 +00:00
parent 7f38dd255e
commit d6888a65c4
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
16 changed files with 35 additions and 14 deletions

View file

@ -11,6 +11,7 @@ include <tunables/global>
profile pkexec @{exec_path} {
include <abstractions/base>
include <abstractions/authentication>
include <abstractions/bus/polkit>
include <abstractions/consoles>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>
@ -36,11 +37,6 @@ profile pkexec @{exec_path} {
member=GetAll
peer=(name=:*),
dbus (send) bus=system path=/org/freedesktop/PolicyKit1/Authority
interface=org.freedesktop.PolicyKit1.Authority
member={EnumerateActions,CheckAuthorization,RegisterAuthenticationAgent,UnregisterAuthenticationAgent}
peer=(name=:*),
dbus (receive) bus=system path=/org/freedesktop/PolicyKit1*/Authority
interface=org.freedesktop.PolicyKit1*.Authority
member=Changed

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} = @{bin}/pkttyagent
profile pkttyagent @{exec_path} {
include <abstractions/base>
include <abstractions/bus/polkit>
include <abstractions/consoles>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{lib}/power-profiles-daemon
profile power-profiles-daemon @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus/polkit>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>