Skip to content

Commit

Permalink
feat: ensure the dbus services start with the good profile.
Browse files Browse the repository at this point in the history
As the entrypoin is the same for system & session bus, it is required to use
systemd to select the profile.
  • Loading branch information
roddhjav committed Mar 16, 2024
1 parent 6a41184 commit d41f289
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions systemd/default/system/dbus-broker.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
AppArmorProfile=dbus-system
2 changes: 2 additions & 0 deletions systemd/default/system/dbus.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
AppArmorProfile=dbus-system
3 changes: 1 addition & 2 deletions systemd/default/user/at-spi-dbus-bus.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[Service]
AppArmorProfile=at-spi-bus

AppArmorProfile=dbus-accessibility
2 changes: 2 additions & 0 deletions systemd/default/user/dbus-broker.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
AppArmorProfile=dbus-session
2 changes: 2 additions & 0 deletions systemd/default/user/dbus.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
AppArmorProfile=dbus-session

0 comments on commit d41f289

Please sign in to comment.