-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be1461f
commit 2a51780
Showing
2 changed files
with
89 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
<busconfig> | ||
<!-- Our well-known bus type, do not change this --> | ||
<type>system</type> | ||
|
||
<!-- Fork into daemon mode --> | ||
<fork/> | ||
|
||
<!-- Enable logging to syslog --> | ||
<syslog/> | ||
|
||
<!-- Only allow socket-credentials-based authentication --> | ||
<auth>EXTERNAL</auth> | ||
|
||
<!-- Only listen on a local socket. (abstract=/path/to/socket | ||
means use abstract namespace, don't really create filesystem | ||
file; only Linux supports this. Use path=/whatever on other | ||
systems.) --> | ||
<listen>unix:path=/tmp/system_bus_socket</listen> | ||
|
||
<policy context="default"> | ||
<!-- All users can connect to system bus --> | ||
<allow user="*"/> | ||
|
||
<!-- Holes must be punched in service configuration files for | ||
name ownership and sending method calls --> | ||
<deny own="*"/> | ||
<deny send_type="method_call"/> | ||
|
||
<!-- Signals and reply messages (method returns, errors) are allowed | ||
by default --> | ||
<allow send_type="signal"/> | ||
<allow send_requested_reply="true" send_type="method_return"/> | ||
<allow send_requested_reply="true" send_type="error"/> | ||
|
||
<!-- All messages may be received by default --> | ||
<allow receive_type="method_call"/> | ||
<allow receive_type="method_return"/> | ||
<allow receive_type="error"/> | ||
<allow receive_type="signal"/> | ||
|
||
<!-- Allow anyone to talk to the message bus --> | ||
<allow send_destination="org.freedesktop.DBus" | ||
send_interface="org.freedesktop.DBus" /> | ||
<allow send_destination="org.freedesktop.DBus" | ||
send_interface="org.freedesktop.DBus.Introspectable"/> | ||
<!-- But disallow some specific bus services --> | ||
<deny send_destination="org.freedesktop.DBus" | ||
send_interface="org.freedesktop.DBus" | ||
send_member="UpdateActivationEnvironment"/> | ||
<deny send_destination="org.freedesktop.DBus" | ||
send_interface="org.freedesktop.DBus.Debug.Stats"/> | ||
<deny send_destination="org.freedesktop.DBus" | ||
send_interface="org.freedesktop.systemd1.Activator"/> | ||
</policy> | ||
|
||
</busconfig> |