commit rpcbind for openSUSE:Factory
Hello community, here is the log from the commit of package rpcbind for openSUSE:Factory checked in at 2016-11-25 12:02:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rpcbind (Old) and /work/SRC/openSUSE:Factory/.rpcbind.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rpcbind" Changes: -------- --- /work/SRC/openSUSE:Factory/rpcbind/rpcbind.changes 2016-11-16 13:31:19.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rpcbind.new/rpcbind.changes 2016-11-25 12:02:06.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Nov 22 08:27:10 CET 2016 - kukuk@suse.de + +- Add 0012-Move-default-state-dir-to-a-subdirectory-of-var-run.patch + from upstream, replacing systemd tmpfile solution. + +------------------------------------------------------------------- Old: ---- rpcbind.conf New: ---- 0012-Move-default-state-dir-to-a-subdirectory-of-var-run.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rpcbind.spec ++++++ --- /var/tmp/diff_new_pack.F6mAYK/_old 2016-11-25 12:02:07.000000000 +0100 +++ /var/tmp/diff_new_pack.F6mAYK/_new 2016-11-25 12:02:07.000000000 +0100 @@ -27,7 +27,6 @@ Source2: sysconfig.rpcbind Source3: rpcbind.xml Source4: pmap_set.c -Source5: rpcbind.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtirpc-devel >= 1.0.1 BuildRequires: libtool @@ -47,6 +46,7 @@ Patch9: 0009-init_transport-move-the-registration-code-into-a-sep.patch Patch10: 0010-Fix-the-behavior-when-specifying-the-h-option.patch Patch11: 0011-Clean-up-the-way-we-handle-the-h-option-in-init_tran.patch +Patch12: 0012-Move-default-state-dir-to-a-subdirectory-of-var-run.patch Patch14: 0014-When-using-systemd-redirect-syslog-calls-to-the-syst.patch Patch30: 0030-systemd-fix-rmtcall.patch Patch31: 0031-rpcbind-manpage.patch @@ -74,6 +74,7 @@ #%patch9 -p1 #%patch10 -p1 #%patch11 -p1 +%patch12 -p1 #%patch14 -p1 #%patch30 -p1 %patch31 -p1 @@ -101,8 +102,6 @@ install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/ mkdir -p $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d/ -mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d -install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/ # install -m 755 pmap_set $RPM_BUILD_ROOT/sbin/pmap_set2 # create symlink for rcrpcbind @@ -124,7 +123,6 @@ %post %{fillup_only -n rpcbind} -/usr/bin/systemd-tmpfiles --create rpcbind.conf ||: %service_add_post %{name}.service %{name}.socket %postun @@ -139,7 +137,6 @@ %{_sbindir}/rcrpcbind %{_mandir}/*/* /var/adm/fillup-templates/sysconfig.rpcbind -/usr/lib/tmpfiles.d/rpcbind.conf %{_datadir}/omc/svcinfo.d/rpcbind.xml %{_unitdir}/%{name}.service %{_unitdir}/%{name}.socket ++++++ 0012-Move-default-state-dir-to-a-subdirectory-of-var-run.patch ++++++
From 2e78e6fb51292fea798355e5cb749dbc1de26ca6 Mon Sep 17 00:00:00 2001 From: NeilBrown
Date: Wed, 16 Nov 2016 10:53:07 -0500 Subject: [PATCH 1/1] Move default state-dir to a subdirectory of /var/run
rpcbind can save state in a file to allow restart without forgetting
about running services.
The default location is currently "/tmp" which is
not ideal for system files. It is particularly unpleasant
to put simple files there rather than creating a directory
to contain them.
On a modern Linux system it is preferable to use /run, and there it is
even more consistent with practice to use a subdirectory.
This directory needs to be create one each boot, and while there are
tools (e.g. systemd-tmpfiles) which can do that it is cleaner to keep
rpcbind self-contained and have it create the directory.
So change the default location to /var/run/rpcbind, and create that
directory. If a different user-id is used, we need to create
and chown the directory before dropping privileges. We do this
with care so avoid chowning the wrong thing by mistake.
Signed-off-by: NeilBrown
participants (1)
-
root@hilbert.suse.de