Skip to content

Commit

Permalink
feat(abs): add some common dbus rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Nov 29, 2023
1 parent 94f18ed commit f5e7cd7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apparmor.d/abstractions/dbus-accessibility-strict.d/complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=accessibility path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member={RequestName,ReleaseName}
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
5 changes: 5 additions & 0 deletions apparmor.d/abstractions/dbus-session-strict.d/complete
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

unix (connect, send, receive, accept) type=stream peer=(addr="@/tmp/dbus-????????"),

dbus send bus=session path=/org/freedesktop/dbus
interface=org.freedesktop.DBus
member={RequestName,ReleaseName}
peer=(name=org.freedesktop.DBus, label=dbus-daemon),

owner @{run}/user/@{uid}/at-spi/ rw,
owner @{run}/user/@{uid}/at-spi/bus rw,
owner @{run}/user/@{uid}/at-spi/bus_@{int} rw,
Expand Down
8 changes: 8 additions & 0 deletions apparmor.d/abstractions/dbus-strict.d/complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member={RequestName,ReleaseName}
peer=(name=org.freedesktop.DBus, label=dbus-daemon),

0 comments on commit f5e7cd7

Please sign in to comment.