From a04815083f2e08167c2d7748ce374988f18d59c00d913b90ca3a436f9b00cfd8 Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Tue, 28 Mar 2017 12:48:09 +0000 Subject: [PATCH] Accepting request 483103 from home:kstreitova:branches:Base:System - update to 1.5.1 * crontab: Use temporary file name that is ignored by crond. * crond: Inherit PATH from the crond environment if -P option is used. * crond: Remove hardcoded "system_u" SELinux user, use the SELinux user of the running crond. * anacron: Small cleanups and fixes. * crond: Fix longstanding race condition on repeated crontab modification. - refresh cronie-pam_config.diff - get rid of %{name} macros in the patch names - use %{ext_man} macro for anacron man pages OBS-URL: https://build.opensuse.org/request/show/483103 OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=154 --- cronie-1.5.0.tar.gz | 3 --- cronie-1.5.1.tar.gz | 3 +++ cronie-pam_config.diff | 14 +++++++------- cronie.changes | 17 +++++++++++++++++ cronie.spec | 12 ++++++------ 5 files changed, 33 insertions(+), 16 deletions(-) delete mode 100644 cronie-1.5.0.tar.gz create mode 100644 cronie-1.5.1.tar.gz diff --git a/cronie-1.5.0.tar.gz b/cronie-1.5.0.tar.gz deleted file mode 100644 index 735ecf1..0000000 --- a/cronie-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f -size 242072 diff --git a/cronie-1.5.1.tar.gz b/cronie-1.5.1.tar.gz new file mode 100644 index 0000000..e3116ae --- /dev/null +++ b/cronie-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c73666102a6b5d35e2eaf1bd06925f2d4b0cef8d3323c37286dda3089a85338 +size 243384 diff --git a/cronie-pam_config.diff b/cronie-pam_config.diff index b551697..d016df5 100644 --- a/cronie-pam_config.diff +++ b/cronie-pam_config.diff @@ -1,16 +1,16 @@ -Index: cronie-1.4.8/pam/crond +Index: cronie-1.5.1/pam/crond =================================================================== ---- cronie-1.4.8.orig/pam/crond -+++ cronie-1.4.8/pam/crond -@@ -3,8 +3,10 @@ +--- cronie-1.5.1.orig/pam/crond ++++ cronie-1.5.1/pam/crond +@@ -4,8 +4,10 @@ # - # - # No PAM authentication called, auth modules not needed + # Although no PAM authentication is called, auth modules + # are used for credential setting +-auth include password-auth -account required pam_access.so -account include password-auth -session required pam_loginuid.so -session include password-auth --auth include password-auth +auth sufficient pam_rootok.so +account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet +auth include common-auth diff --git a/cronie.changes b/cronie.changes index bd75324..7aedbdc 100644 --- a/cronie.changes +++ b/cronie.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Tue Mar 28 09:18:55 UTC 2017 - kstreitova@suse.com + +- update to 1.5.1 + * crontab: Use temporary file name that is ignored by crond. + * crond: Inherit PATH from the crond environment if -P option + is used. + * crond: Remove hardcoded "system_u" SELinux user, use the + SELinux user + of the running crond. + * anacron: Small cleanups and fixes. + * crond: Fix longstanding race condition on repeated crontab + modification. +- refresh cronie-pam_config.diff +- get rid of %{name} macros in the patch names +- use %{ext_man} macro for anacron man pages + ------------------------------------------------------------------- Thu Mar 23 15:14:29 UTC 2017 - kstreitova@suse.com diff --git a/cronie.spec b/cronie.spec index f0de1ad..5390e0c 100644 --- a/cronie.spec +++ b/cronie.spec @@ -18,7 +18,7 @@ %define cron_configs %{_sysconfdir}/pam.d/crond %{_sysconfdir}/crontab %{_sysconfdir}/cron.deny Name: cronie -Version: 1.5.0 +Version: 1.5.1 Release: 0 Summary: Cron Daemon License: BSD-3-Clause and GPL-2.0 and MIT @@ -33,13 +33,13 @@ Source7: cron_to_cronie.README Source8: cron.service Source9: sysconfig.cron # PATCH-FEATURE-OPENSUSE cronie-pam_config.diff added pam config file from old cron -Patch3: %{name}-pam_config.diff +Patch3: cronie-pam_config.diff # openSUSE set NHEADER_LINES to 3 - old openSUSE cron put three lines of comments # in top of crontab file, so we want to hide this junk comments if user edit # crontab file with crontab -e command, patch grabbed from old openSUSE cron -Patch4: %{name}-nheader_lines.diff +Patch4: cronie-nheader_lines.diff # we use cron.pid instead of crond.pid -Patch5: %{name}-crond_pid.diff +Patch5: cronie-crond_pid.diff # PATCH-FIX-UPSTREAM mention logging disabling for a command in man Patch7: cronie-1.4.7-disable_logging.patch # PATCH-FIX-UPSTREAM use run-crons instead of run-parts for anacron (bnc#689494) @@ -213,8 +213,8 @@ exit 0 %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.daily %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.weekly %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.monthly -%{_mandir}/man5/anacrontab.* -%{_mandir}/man8/anacron.* +%{_mandir}/man5/anacrontab.5%{ext_man} +%{_mandir}/man8/anacron.8%{ext_man} %files -n cron %defattr(-,root,root,-)