!5 remove 10-shutdown.rules
From: @liquor1 Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
2a2bd75978
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@ -1,12 +1,11 @@
|
|||||||
Name: polkit
|
Name: polkit
|
||||||
Version: 0.116
|
Version: 0.116
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Define and Handle authorizations tool
|
Summary: Define and Handle authorizations tool
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.freedesktop.org/wiki/Software/polkit
|
URL: http://www.freedesktop.org/wiki/Software/polkit
|
||||||
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
|
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
|
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
|
Patch1: modify-admin-authorization-from-wheel-group-to-root.patch
|
||||||
Patch2: Port-JavaScript-authority-to-mozjs-68.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
|
%delete_la
|
||||||
|
|
||||||
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/polkit-1/rules.d/10-shutdown.rules
|
|
||||||
%find_lang polkit-1
|
%find_lang polkit-1
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -91,7 +89,6 @@ exit 0
|
|||||||
%doc COPYING NEWS README
|
%doc COPYING NEWS README
|
||||||
%dir %{_sysconfdir}/polkit-1
|
%dir %{_sysconfdir}/polkit-1
|
||||||
%{_sysconfdir}/polkit-1/rules.d/50-default.rules
|
%{_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
|
%attr(0700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
|
||||||
%{_sysconfdir}/pam.d/polkit-1
|
%{_sysconfdir}/pam.d/polkit-1
|
||||||
@ -129,6 +126,9 @@ exit 0
|
|||||||
%{_datadir}/man/man8/*
|
%{_datadir}/man/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 6 2021 Liquor <lirui130@huawei.com> - 0.116-6
|
||||||
|
- remove 10-shutdown.rules
|
||||||
|
|
||||||
* Fri Nov 13 2020 Hugel <gengqihu1@huawei.com> - 0.116-5
|
* Fri Nov 13 2020 Hugel <gengqihu1@huawei.com> - 0.116-5
|
||||||
- Port polkit to mozjs78
|
- Port polkit to mozjs78
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user