core: systemd1.manage-unit-files policy implies systemd1.manage-units
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 May 2018 14:47:09 +0000 (23:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 May 2018 15:02:58 +0000 (00:02 +0900)
This makes e.g. `systemctl enable --now` ask password only once.

Follow-up for b07abe63d3abf03df559f7cb2c9863943df22274.

src/core/org.freedesktop.systemd1.policy.in

index c60cc0b..001408d 100644 (file)
@@ -47,7 +47,7 @@
                         <allow_inactive>auth_admin</allow_inactive>
                         <allow_active>auth_admin_keep</allow_active>
                 </defaults>
-                <annotate key="org.freedesktop.policykit.imply">org.freedesktop.systemd1.reload-daemon</annotate>
+                <annotate key="org.freedesktop.policykit.imply">org.freedesktop.systemd1.reload-daemon org.freedesktop.systemd1.manage-units</annotate>
         </action>
 
         <action id="org.freedesktop.systemd1.set-environment">