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 69d9bc6a1a08618e543b128a67137cf005575b0a..d23f646a3f34e484ba2e20590ae4ff82e08a67ff 100644 --- a/polkit.spec +++ b/polkit.spec @@ -1,12 +1,11 @@ Name: polkit Version: 0.116 -Release: 4 +Release: 5 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 Patch9000: modify-admin-authorization-from-wheel-group-to-root.patch @@ -68,7 +67,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 @@ -89,7 +87,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 @@ -127,6 +124,9 @@ exit 0 %{_datadir}/man/man8/* %changelog +* Wed Jan 6 2021 Liquor - 0.116-5 +- remove 10-shutdown.rules + * Sun Sep 29 2019 openEuler Buildteam - 0.116-4 - Add libs