summaryrefslogtreecommitdiff
path: root/policy/org.freedesktop.NetworkManager.policy.in.in
blob: cb229990ca5fef5b11c8c411b35e0496c9a5c0e0 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">

<policyconfig>

  <vendor>NetworkManager</vendor>
  <vendor_url>http://www.gnome.org/projects/NetworkManager</vendor_url>
  <icon_name>nm-icon</icon_name>

  <action id="org.freedesktop.NetworkManager.enable-disable-network">
    <_description>Enable or disable system networking</_description>
    <_message>System policy prevents enabling or disabling system networking</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.sleep-wake">
    <_description>Put NetworkManager to sleep or wake it up (should only be used by system power management)</_description>
    <_message>System policy prevents putting NetworkManager to sleep or waking it up</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>no</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.enable-disable-wifi">
    <_description>Enable or disable WiFi devices</_description>
    <_message>System policy prevents enabling or disabling WiFi devices</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.enable-disable-wwan">
    <_description>Enable or disable mobile broadband devices</_description>
    <_message>System policy prevents enabling or disabling mobile broadband devices</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.enable-disable-wimax">
    <_description>Enable or disable WiMAX mobile broadband devices</_description>
    <_message>System policy prevents enabling or disabling WiMAX mobile broadband devices</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.network-control">
    <_description>Allow control of network connections</_description>
    <_message>System policy prevents control of network connections</_message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.wifi.share.protected">
    <_description>Connection sharing via a protected WiFi network</_description>
    <_message>System policy prevents sharing connections via a protected WiFi network</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.wifi.share.open">
    <_description>Connection sharing via an open WiFi network</_description>
    <_message>System policy prevents sharing connections via an open WiFi network</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.settings.modify.own">
    <_description>Modify personal network connections</_description>
    <_message>System policy prevents modification of personal network settings</_message>
    <defaults>
      <allow_any>auth_self_keep</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.settings.modify.system">
    <_description>Modify network connections for all users</_description>
    <_message>System policy prevents modification of network settings for all users</_message>
    <defaults>
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>@NM_MODIFY_SYSTEM_POLICY@</allow_inactive>
      <allow_active>@NM_MODIFY_SYSTEM_POLICY@</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.NetworkManager.settings.modify.hostname">
    <_description>Modify persistent system hostname</_description>
    <_message>System policy prevents modification of the persistent system hostname</_message>
    <defaults>
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>auth_admin_keep</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

</policyconfig>