<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-FileCopyrightText: © 2016 Germar Reitze
SPDX-FileCopyrightText: © 2017 Matthias Gerstner

SPDX-License-Identifier: GPL-2.0-or-later

This file is part of the program "Back In Time" which is released under GNU
General Public License v2 (GPLv2). See LICENSES directory or go to
<https://spdx.org/licenses/GPL-2.0-or-later.html>
-->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
  <type>system</type>
  <!-- Only root can own the service -->
  <policy user="root">
    <allow own="net.launchpad.backintime.serviceHelper"/>
    <allow send_destination="net.launchpad.backintime.serviceHelper"
           send_interface="net.launchpad.backintime.serviceHelper.UdevRules"/>
  </policy>

  <!-- Allow anyone to invoke methods on the interfaces -->
  <policy context="default">
    <allow send_destination="net.launchpad.backintime.serviceHelper"
           send_interface="net.launchpad.backintime.serviceHelper.UdevRules"/>

    <allow send_destination="net.launchpad.backintime.serviceHelper"
           send_interface="org.freedesktop.DBus.Introspectable"/>
  </policy>
</busconfig>
