From c643359612a04ede025e9dd7bff5f6fd614535ec Mon Sep 17 00:00:00 2001 From: shixuantong Date: Tue, 28 May 2024 20:27:11 +0800 Subject: [PATCH] revert 'create /etc/at.allow' and 'do not pack /etc/at.deny' (cherry picked from commit 6dfef348cbf315bc923e8a0fc3991cad99aa025e) --- at.spec | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/at.spec b/at.spec index 765a8c8..a08ec89 100644 --- a/at.spec +++ b/at.spec @@ -1,6 +1,6 @@ Name: at Version: 3.2.2 -Release: 6 +Release: 4 Summary: A job manager License: GPLv3+, GPLv2+, ISC, MIT, Public Domain URL: http://ftp.debian.org/debian/pool/main/a/at @@ -95,11 +95,6 @@ make test %systemd_preun atd.service %post -if ! test -f %{_sysconfdir}/at.allow; then - touch %{_sysconfdir}/at.allow - chown root:root %{_sysconfdir}/at.allow - chmod og-rwx %{_sysconfdir}/at.allow -fi touch %{_localstatedir}/spool/at/.SEQ chmod 600 %{_localstatedir}/spool/at/.SEQ chown root:root %{_localstatedir}/spool/at/.SEQ @@ -111,6 +106,7 @@ chown root:root %{_localstatedir}/spool/at/.SEQ %files %license Copyright COPYING %doc README timespec ChangeLog +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/at.deny %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/atd %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/atd %attr(4755,root,root) %{_bindir}/at @@ -123,24 +119,11 @@ chown root:root %{_localstatedir}/spool/at/.SEQ %attr(0600,root,root) %verify(not md5 size mtime) %ghost %{_localstatedir}/spool/at/.SEQ %attr(0700,root,root) %dir %{_localstatedir}/spool/at/spool %attr(0644,root,root) /%{_unitdir}/atd.service -%exclude %{_sysconfdir}/at.deny %files help %{_mandir}/man*/* %changelog -* Mon May 27 2024 shixuantong - 3.2.2-6 -- Type:bugfix -- ID:NA -- SUG:NA -- DESC:create /etc/at.allow - -* Fri May 24 2024 shixuantong - 3.2.2-5 -- Type:bugfix -- ID:NA -- SUG:NA -- DESC:do not pack /etc/at.deny - * Fri Jun 9 2023 zhoupengcheng - 3.2.2-4 - Type:bugfix - CVE: -- Gitee