]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: permit sending augmented enable/disable methods
authorRonan Pigott <ronan@rjp.ie>
Sat, 18 Feb 2023 23:50:22 +0000 (16:50 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Feb 2023 03:33:57 +0000 (12:33 +0900)
systemctl disable some.service fails to acquire interactive permission
because the DisableUnitFilesWithFlagsAndInstallInto method isn't permitted

src/core/org.freedesktop.systemd1.conf

index 7f44c32b8395b36e06c4be9cb9c51961607a97d3..52034e07e73280b576504b6468f1e1c9d224437e 100644 (file)
                        send_interface="org.freedesktop.systemd1.Manager"
                        send_member="EnableUnitFiles"/>
 
+                <allow send_destination="org.freedesktop.systemd1"
+                       send_interface="org.freedesktop.systemd1.Manager"
+                       send_member="EnableUnitFilesWithFlags"/>
+
                 <allow send_destination="org.freedesktop.systemd1"
                        send_interface="org.freedesktop.systemd1.Manager"
                        send_member="DisableUnitFiles"/>
 
+                <allow send_destination="org.freedesktop.systemd1"
+                       send_interface="org.freedesktop.systemd1.Manager"
+                       send_member="DisableUnitFilesWithFlags"/>
+
+                <allow send_destination="org.freedesktop.systemd1"
+                       send_interface="org.freedesktop.systemd1.Manager"
+                       send_member="DisableUnitFilesWithFlagsAndInstallInfo"/>
+
                 <allow send_destination="org.freedesktop.systemd1"
                        send_interface="org.freedesktop.systemd1.Manager"
                        send_member="ReenableUnitFiles"/>