mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 11:20:07 +01:00
Since the new PolicyKit does away with easy checking of authorizations, we get to implement it by ourselves, but that's OK since we can actually use it for a lot more stuff. So add the GetPermissions call which returns the permissions the caller actually has, and a signal informing callers that their permissions might have changed. Hook this all up to PolicyKit so it's useful.
48 lines
1.8 KiB
XML
48 lines
1.8 KiB
XML
<?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.network-manager-settings.system.modify">
|
|
<_description>Modify system connections</_description>
|
|
<_message>System policy prevents modification of system settings</_message>
|
|
<defaults>
|
|
<allow_inactive>no</allow_inactive>
|
|
<allow_active>auth_admin_keep</allow_active>
|
|
</defaults>
|
|
</action>
|
|
|
|
<action id="org.freedesktop.network-manager-settings.system.hostname.modify">
|
|
<_description>Modify persistent system hostname</_description>
|
|
<_message>System policy prevents modification of the persistent system hostname</_message>
|
|
<defaults>
|
|
<allow_inactive>no</allow_inactive>
|
|
<allow_active>auth_admin_keep</allow_active>
|
|
</defaults>
|
|
</action>
|
|
|
|
<action id="org.freedesktop.network-manager-settings.system.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.network-manager-settings.system.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>
|
|
|
|
</policyconfig>
|