diff --git a/10-shutdown.rules b/10-shutdown.rules deleted file mode 100644 index dba60c3a802f6cd841e4f6809975aae51b79cf48..0000000000000000000000000000000000000000 --- a/10-shutdown.rules +++ /dev/null @@ -1,15 +0,0 @@ -polkit.addRule(function(action, subject) { - if (action.id == "org.freedesktop.login1.reboot" || - action.id == "org.freedesktop.login1.reboot-ignore-inhibit" || - action.id == "org.freedesktop.login1.reboot-multiple-sessions" || - action.id == "org.freedesktop.login1.power-off" || - action.id == "org.freedesktop.login1.power-off-ignore-inhibit" || - action.id == "org.freedesktop.login1.power-off-multiple-sessions" || - action.id == "org.freedesktop.login1.hibernate" || - action.id == "org.freedesktop.login1.hibernate-ignore-inhibit" || - action.id == "org.freedesktop.login1.hibernate-multiple-sessions") { - if (subject.user != "root") { - return polkit.Result.NO; - } - } -}); diff --git a/polkit.spec b/polkit.spec index 52520f130bfe210bd305e72ad37ef9f19d5c3df9..40e2c78357890e8edb7c871f1474e60514875338 100644 --- a/polkit.spec +++ b/polkit.spec @@ -1,12 +1,11 @@ Name: polkit Version: 0.116 -Release: 5 +Release: 6 Summary: Define and Handle authorizations tool License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign -Source2: 10-shutdown.rules Patch1: modify-admin-authorization-from-wheel-group-to-root.patch Patch2: Port-JavaScript-authority-to-mozjs-68.patch @@ -70,7 +69,6 @@ sed -i 's/=\"ientry-idm[0-9]\{5,32\}\"/=\"ientry-idm123456789123456\"/g' docs/po %delete_la -install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/polkit-1/rules.d/10-shutdown.rules %find_lang polkit-1 %pre @@ -91,7 +89,6 @@ exit 0 %doc COPYING NEWS README %dir %{_sysconfdir}/polkit-1 %{_sysconfdir}/polkit-1/rules.d/50-default.rules -%{_sysconfdir}/polkit-1/rules.d/10-shutdown.rules %attr(0700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf %{_sysconfdir}/pam.d/polkit-1 @@ -129,6 +126,9 @@ exit 0 %{_datadir}/man/man8/* %changelog +* Wed Jan 6 2021 Liquor - 0.116-6 +- remove 10-shutdown.rules + * Fri Nov 13 2020 Hugel - 0.116-5 - Port polkit to mozjs78