org.freedesktop.NetworkManager.policy.in.in 6.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?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>

21 22 23 24 25 26 27 28 29 30
  <action id="org.freedesktop.NetworkManager.reload">
    <_description>Reload NetworkManager configuration</_description>
    <_message>System policy prevents reloading NetworkManager</_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>

31 32 33 34 35 36 37 38 39
  <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>

40
  <action id="org.freedesktop.NetworkManager.enable-disable-wifi">
41 42
    <_description>Enable or disable Wi-Fi devices</_description>
    <_message>System policy prevents enabling or disabling Wi-Fi devices</_message>
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    <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>

58 59 60 61 62 63 64 65 66
  <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>

67 68 69 70
  <action id="org.freedesktop.NetworkManager.network-control">
    <_description>Allow control of network connections</_description>
    <_message>System policy prevents control of network connections</_message>
    <defaults>
71
      <allow_any>auth_admin</allow_any>
72 73 74 75 76
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

77 78 79 80 81 82 83 84 85 86
  <action id="org.freedesktop.NetworkManager.wifi.scan">
    <_description>Allow control of Wi-Fi scans</_description>
    <_message>System policy prevents Wi-Fi scans</_message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

87
  <action id="org.freedesktop.NetworkManager.wifi.share.protected">
88 89
    <_description>Connection sharing via a protected Wi-Fi network</_description>
    <_message>System policy prevents sharing connections via a protected Wi-Fi network</_message>
90 91
    <defaults>
      <allow_inactive>no</allow_inactive>
92
      <allow_active>yes</allow_active>
93 94 95
    </defaults>
  </action>

96
  <action id="org.freedesktop.NetworkManager.wifi.share.open">
97 98
    <_description>Connection sharing via an open Wi-Fi network</_description>
    <_message>System policy prevents sharing connections via an open Wi-Fi network</_message>
99 100
    <defaults>
      <allow_inactive>no</allow_inactive>
101
      <allow_active>yes</allow_active>
102 103 104
    </defaults>
  </action>

105 106 107 108
  <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>
109 110 111
      <allow_any>auth_self_keep</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
112 113 114
    </defaults>
  </action>

115 116 117
  <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>
118
    <defaults>
119 120 121
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>@NM_MODIFY_SYSTEM_POLICY@</allow_inactive>
      <allow_active>@NM_MODIFY_SYSTEM_POLICY@</allow_active>
122 123 124
    </defaults>
  </action>

125
  <action id="org.freedesktop.NetworkManager.settings.modify.hostname">
126 127
    <_description>Modify persistent system hostname</_description>
    <_message>System policy prevents modification of the persistent system hostname</_message>
128
    <defaults>
129
      <allow_any>auth_admin_keep</allow_any>
130 131
      <allow_inactive>auth_admin_keep</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
132 133 134
    </defaults>
  </action>

135 136 137 138 139 140 141 142 143 144
  <action id="org.freedesktop.NetworkManager.settings.modify.global-dns">
    <_description>Modify persistent global DNS configuration</_description>
    <_message>System policy prevents modification of the persistent global DNS configuration</_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>

145 146
  <action id="org.freedesktop.NetworkManager.checkpoint-rollback">
    <_description>Perform a checkpoint or rollback of interfaces configuration</_description>
147
    <_message>System policy prevents the creation of a checkpoint or its rollback</_message>
148 149 150 151 152 153 154
    <defaults>
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>auth_admin_keep</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

155 156 157 158 159 160 161 162 163
  <action id="org.freedesktop.NetworkManager.enable-disable-statistics">
    <_description>Enable or disable device statistics</_description>
    <_message>System policy prevents enabling or disabling device statistics</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

164 165 166 167 168 169 170 171 172
  <action id="org.freedesktop.NetworkManager.enable-disable-connectivity-check">
    <_description>Enable or disable connectivity checking</_description>
    <_message>System policy prevents enabling or disabling connectivity checking</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

173 174
</policyconfig>