<?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_any>auth_admin</allow_any>
      <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>

  <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>

</policyconfig>

