add new method handlers/properties for new location & deployment elements
[systembsd.git] / conf / polkit-policy / org.freedesktop.hostname1.policy
index 2ea55b4fb99322df7a88ad4886dd4db52cb89922..cc9fa99f9d2d71f9ee3325195d8dc22288105f51 100644 (file)
@@ -3,7 +3,7 @@
 
 <policyconfig>
     <vendor>OpenBSD</vendor>
-    <vendor_url>https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git</vendor_url> <!-- TODO change or redirect this URL when we rebase -->
+    <vendor_url>https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git</vendor_url> <!-- TODO change or redirect this URL when we rebase -->
 
     <action id="org.freedesktop.hostname1.set-hostname">
         <description>Set dynamic (system) hostname.</description>
             <allow_active>auth_admin_keep</allow_active>
         </defaults>
     </action>
+    <action id="org.freedesktop.hostname1.set-deployment">
+        <description>Set system's deployment.</description>
+        <message>Setting the system's deployment requires authentication.</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.hostname1.set-location">
+        <description>Set system's location.</description>
+        <message>Setting the system's location requires authentication.</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>