Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevents arbitrary users from accessing d-bus interface. Fixes #473.
This change now requires any application using the LogiOps D-Bus
interface to run as root.
  • Loading branch information
PixlOne committed Sep 28, 2024
1 parent 237fa5f commit 9495516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/logid/logiops-dbus.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
<policy user="root">
<allow own="pizza.pixl.LogiOps"/>
<policy context="default">
<deny receive_sender="pizza.pixl.LogiOps"/>
</policy>

<policy context="default">
<policy user="root">
<allow own="pizza.pixl.LogiOps"/>
<allow send_destination="pizza.pixl.LogiOps"/>
<allow receive_sender="pizza.pixl.LogiOps"/>
</policy>
Expand Down

0 comments on commit 9495516

Please sign in to comment.