summaryrefslogtreecommitdiffstats
path: root/etc/dbus-1/system.d/org.nvmexpress.stac.in.conf
blob: 56b422885b9a48865d21561818c9807874653c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!--
 Copyright (c) 2021, Dell Inc. or its subsidiaries.  All rights reserved.
 SPDX-License-Identifier: Apache-2.0
 See the LICENSE file for details.

 This file is part of NVMe STorage Appliance Services (nvme-stas).

 Authors: Martin Belanger <Martin.Belanger@dell.com>
-->

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Only allow root to own the bus. -->
  <policy user="root">
    <allow own_prefix="@STACD_DBUS_NAME@"/>
  </policy>

  <!-- Allow anyone to invoke most methods on the bus, but deny setting properties. -->
  <policy context="default">
    <allow send_destination="@STACD_DBUS_NAME@"/>

    <deny send_destination="@STACD_DBUS_NAME@"
        send_interface="org.freedesktop.DBus.Properties"
        send_member="Set"
        send_type="method_call"/>
  </policy>

  <!-- Allow root to invoke everything on the bus. -->
  <policy user="root">
    <allow send_destination="@STACD_DBUS_NAME@"/>
  </policy>

</busconfig>