feat(profiles): add dbus rules for some common profiles.

This commit is contained in:
Alexandre Pujol 2022-06-05 23:06:14 +01:00
parent e949654614
commit 583d7a15f0
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
43 changed files with 584 additions and 6 deletions

View file

@ -23,6 +23,9 @@ profile systemd-hostnamed @{exec_path} flags=(attach_disconnected) {
interface=org.freedesktop.DBus.Properties
member={Get,GetAll},
dbus bind bus=system
name=org.freedesktop.hostname[0-9],
@{exec_path} mr,
@{run}/systemd/notify rw,

View file

@ -25,6 +25,9 @@ profile systemd-localed @{exec_path} flags=(attach_disconnected) {
interface=org.freedesktop.DBus.Properties
member=GetAll,
dbus bind bus=system
name=org.freedesktop.locale[0-9],
@{exec_path} mr,
/usr/share/systemd/language-fallback-map r,

View file

@ -44,7 +44,7 @@ profile systemd-logind @{exec_path} flags=(attach_disconnected,complain) {
member=CheckAuthorization,
dbus send bus=system path=/org/freedesktop/systemd[0-9]/unit/**
interface=org.freedesktop.systemd[0-9]/.Scope
interface=org.freedesktop.systemd[0-9].Scope
member=Abandon,
dbus receive bus=system path=/org/freedesktop/systemd[0-9]

View file

@ -23,6 +23,9 @@ profile systemd-timedated @{exec_path} flags=(attach_disconnected) {
interface=org.freedesktop.DBus.Properties
member=Get,
dbus bind bus=system
name=org.freedesktop.timedate[0-9],
@{exec_path} mr,
/dev/rtc[0-9] r,

View file

@ -22,6 +22,11 @@ profile systemd-user-runtime-dir @{exec_path} {
mount fstype=tmpfs options=(rw,nosuid,nodev) -> @{run}/user/@{uid}/,
umount @{run}/user/@{uid}/,
dbus send bus=system path=/org/freedesktop/login[0-9]
interface=org.freedesktop.DBus.Properties
member=Get
peer=(name=org.freedesktop.login[0-9]),
@{exec_path} mr,
/etc/machine-id r,