Hello community, here is the log from the commit of package shadow for openSUSE:Factory checked in at 2015-07-21 13:25:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/shadow (Old) and /work/SRC/openSUSE:Factory/.shadow.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "shadow" Changes: -------- --- /work/SRC/openSUSE:Factory/shadow/shadow.changes 2014-04-06 09:54:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.shadow.new/shadow.changes 2015-07-21 13:25:27.000000000 +0200 @@ -1,0 +2,7 @@ +Wed Jul 15 13:25:11 UTC 2015 - jk...@suse.de + +- Add systemd unit files to continuously check password & groupfile integrity + * Idea from Arch Linux + * pending request to systemd-presets-branding-openSUSE to enable by default + +------------------------------------------------------------------- New: ---- shadow.service shadow.timer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ shadow.spec ++++++ --- /var/tmp/diff_new_pack.8Oyny1/_old 2015-07-21 13:25:28.000000000 +0200 +++ /var/tmp/diff_new_pack.8Oyny1/_new 2015-07-21 13:25:28.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package shadow # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,8 @@ Source3: useradd.local Source4: userdel-pre.local Source5: userdel-post.local +Source6: shadow.service +Source7: shadow.timer Patch: shadow-login_defs.diff Patch1: userdel-scripts.diff Patch2: useradd-script.diff @@ -102,6 +104,8 @@ install -m 0755 %SOURCE3 $RPM_BUILD_ROOT/%{_sbindir}/ install -m 0755 %SOURCE4 $RPM_BUILD_ROOT/%{_sbindir}/ install -m 0755 %SOURCE5 $RPM_BUILD_ROOT/%{_sbindir}/ +install -Dm644 %{S:6} %{buildroot}%{_unitdir}/shadow.service +install -Dm644 %{S:7} %{buildroot}%{_unitdir}/shadow.timer # Remove binaries we don't use. rm $RPM_BUILD_ROOT/%{_bindir}/groups @@ -166,6 +170,9 @@ %clean rm -rf $RPM_BUILD_ROOT +%pre +%service_add_pre shadow.service shadow.timer + %post %set_permissions /usr/bin/chage %set_permissions /usr/bin/chfn @@ -184,6 +191,14 @@ %verify_permissions /usr/bin/newgrp %verify_permissions /usr/bin/passwd +%service_add_post shadow.service shadow.timer + +%preun +%service_del_preun shadow.service shadow.timer + +%postun +%service_del_postun shadow.service shadow.timer + %files -f shadow.lang %defattr(-,root,root) %doc NEWS doc/HOWTO README README.changes-pwdutils @@ -254,4 +269,6 @@ %{_mandir}/man8/vigr.8* %{_mandir}/man8/vipw.8* +%{_unitdir}/* + %changelog ++++++ shadow.service ++++++ [Unit] Description=Verify integrity of password and group files [Service] Type=oneshot ExecStart=/usr/sbin/pwck -r ExecStart=/usr/sbin/grpck -r Nice=19 IOSchedulingClass=best-effort IOSchedulingPriority=7 ++++++ shadow.timer ++++++ [Unit] Description=Daily verification of password and group files [Timer] OnCalendar=daily AccuracySec=12h Persistent=true