Skip to content

Commit

Permalink
hardened org.qomui.service.conf & moved service files from /etc/ to /…
Browse files Browse the repository at this point in the history
…lib/
  • Loading branch information
corrad1nho committed Sep 1, 2018
1 parent ebace8f commit ebab347
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
data_files = [
('/usr/share/qomui', ['resources/countries.json']),
('/usr/share/applications/', ['resources/qomui.desktop']),
('/usr/lib/systemd/system/', ['resources/qomui.service']),
('/etc/dbus-1/system.d/', ['resources/org.qomui.service.conf']),
('/lib/systemd/system/', ['systemd/qomui.service']),
('/usr/share/dbus-1/system.d/', ['systemd/org.qomui.service.conf']),
('/usr/share/dbus-1/system-services/', ['systemd/org.qomui.service']),
('/usr/share/icons/hicolor/scalable/apps/', ['resources/qomui.svg',
'resources/qomui_off.svg']),
('/usr/share/qomui/', [
Expand Down
5 changes: 5 additions & 0 deletions systemd/org.qomui.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[D-BUS Service]
Name=org.qomui.service
Exec=/bin/false
User=root
SystemdService=qomui.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

<busconfig>
<policy context="default">
<allow send_type="method_call" log="true"/>
<allow send_destination="org.qomui.service" log="true"/>
<allow receive_sender="org.qomui.service" log="true"/>
</policy>
<policy user="root">
<allow own="org.qomui.service"/>
Expand Down
1 change: 1 addition & 0 deletions resources/qomui.service → systemd/qomui.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ BusName=org.qomui.service

[Install]
WantedBy=multi-user.target
Alias=dbus-org.qomui.service

0 comments on commit ebab347

Please sign in to comment.