mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
build: Add D-Bus policy for Ethernet authentication daemon
This commit is contained in:
parent
0c5b6e4da3
commit
c9b460f5cc
@ -197,6 +197,10 @@ wired_ead_SOURCES = wired/main.c
|
||||
wired_ead_LDADD = ell/libell-internal.la
|
||||
wired_ead_DEPENDENCIES = ell/libell-internal.la
|
||||
|
||||
if DBUS_POLICY
|
||||
dist_dbus_data_DATA += wired/ead-dbus.conf
|
||||
endif
|
||||
|
||||
if SYSTEMD_SERVICE
|
||||
wired_ead_DEPENDENCIES += wired/ead.service
|
||||
|
||||
|
30
wired/ead-dbus.conf
Normal file
30
wired/ead-dbus.conf
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- This configuration file specifies the required security policies
|
||||
for Ethernet daemon to work. -->
|
||||
|
||||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
|
||||
<!-- ../system.conf have denied everything, so we just punch some holes -->
|
||||
|
||||
<policy user="root">
|
||||
<allow own="net.connman.ead"/>
|
||||
<allow send_destination="net.connman.ead"/>
|
||||
<allow send_interface="net.connman.ead.Agent"/>
|
||||
</policy>
|
||||
|
||||
<policy group="wheel">
|
||||
<allow send_destination="net.connman.ead"/>
|
||||
<allow send_interface="net.connman.ead.Agent"/>
|
||||
</policy>
|
||||
|
||||
<policy at_console="true">
|
||||
<allow send_destination="net.connman.ead"/>
|
||||
<allow send_interface="net.connman.ead.Agent"/>
|
||||
</policy>
|
||||
|
||||
<policy context="default">
|
||||
<deny send_destination="net.connman.ead"/>
|
||||
</policy>
|
||||
|
||||
</busconfig>
|
Loading…
Reference in New Issue
Block a user