Home | History | Annotate | Download | only in dbus
      1 <!DOCTYPE busconfig PUBLIC
      2           "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
      3           "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
      4 <busconfig>
      5 
      6   <!-- Only certain user can own the tlsdated service -->
      7   <policy user="@UNPRIV_USER@">
      8     <allow own="org.torproject.tlsdate"/>
      9   </policy>
     10 
     11   <!-- Allow anyone in the given group to invoke methods -->
     12   <policy group="@DBUS_CLIENT_GROUP@">
     13     <allow send_destination="org.torproject.tlsdate"
     14            send_interface="org.torproject.tlsdate"
     15            send_member="LastSyncInfo"/>
     16     <allow send_destination="org.torproject.tlsdate"
     17            send_interface="org.torproject.tlsdate"
     18            send_member="SetTime"/>
     19     <allow send_destination="org.torproject.tlsdate"
     20            send_interface="org.torproject.tlsdate"
     21            send_member="CanSetTime"/>
     22   </policy>
     23 
     24   <!-- Disallow anyone to invoke methods on tlsdated interface -->
     25   <policy context="default">
     26     <deny send_interface="org.torproject.tlsdate" />
     27     <allow send_destination="org.torproject.tlsdate"
     28            send_interface="org.torproject.tlsdate"
     29            send_member="LastSyncInfo"/>
     30   </policy>
     31 </busconfig>
     32