]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: Add policy in polkit DHCP server forcenenew
authorSusant Sahani <ssahani@vmware.com>
Wed, 19 Feb 2020 06:41:36 +0000 (07:41 +0100)
committerSusant Sahani <ssahani@vmware.com>
Wed, 19 Feb 2020 06:41:36 +0000 (07:41 +0100)
src/network/org.freedesktop.network1.policy

index 9b1895e657d2912614dcd13352a6c6cb1ccde934..50b0ef081422e31b7a683dbb720952b093197959 100644 (file)
                 <annotate key="org.freedesktop.policykit.owner">unix-user:systemd-network</annotate>
         </action>
 
+        <action id="org.freedesktop.network1.forcerenew">
+                <description gettext-domain="systemd">DHCP server sends force renew message</description>
+                <message gettext-domain="systemd">Authentication is required to send force renew message.</message>
+                <defaults>
+                        <allow_any>auth_admin</allow_any>
+                        <allow_inactive>auth_admin</allow_inactive>
+                        <allow_active>auth_admin_keep</allow_active>
+                </defaults>
+                <annotate key="org.freedesktop.policykit.owner">unix-user:systemd-network</annotate>
+        </action>
+
         <action id="org.freedesktop.network1.renew">
                 <description gettext-domain="systemd">Renew dynamic addresses</description>
                 <message gettext-domain="systemd">Authentication is required to renew dynamic addresses.</message>