mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
Add new Reload D-Bus command to reload NetworkManager configuration.
For now, this is like sending SIGHUP to the process. There are several
advantages here:
- it is guarded via PolicyKit authentication while signals
can only be sent by root.
- the user can wait for the reload to be complete instead of sending
an asynchronous signal. For now, we operation completes after
nm_config_reload() returns, but later we could delay the response
further until specific parts are fully reloaded.
- SIGHUP reloads everything including re-reading configuration from
disk while SIGUSR1 reloads just certain parts such as writing out DNS
configuration anew.
Now, the Reload command has a flags argument which is more granular
in selecting parts which are to be reloaded. For example, via
signals the user can:
1) send SIGUSR1: this writes out the DNS configuration to
resolv.conf and possibly reloads other parts without
re-reading configuration and without restarting the DNS plugin.
2) send SIGHUP: this reloads configuration from disk,
writes out resolv.conf and restarts the DNS plugin.
There is no way, to only restart the DNS plugin without also reloading
everything else.
136 lines
5.3 KiB
XML
136 lines
5.3 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.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.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>
|
|
|
|
<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>
|
|
|