[meta-security] sssd: use /run instead of /var/run in systemd service file

Submitted by Qi.Chen@windriver.com on Oct. 16, 2020, 7:49 a.m. | Patch ID: 177287

Details

Message ID 20201016074900.36692-1-Qi.Chen@windriver.com
State Under Review
Delegated to: Armin Kuster
Headers show

Commit Message

Qi.Chen@windriver.com Oct. 16, 2020, 7:49 a.m.
/var/run has been deprecated by systemd, so use /run instead,
as suggested by systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 ...ervice.in-use-run-instead-of-var-run.patch | 28 +++++++++++++++++++
 recipes-security/sssd/sssd_1.16.5.bb          |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 recipes-security/sssd/files/0001-sssd.service.in-use-run-instead-of-var-run.patch

Patch hide | download patch | download mbox

diff --git a/recipes-security/sssd/files/0001-sssd.service.in-use-run-instead-of-var-run.patch b/recipes-security/sssd/files/0001-sssd.service.in-use-run-instead-of-var-run.patch
new file mode 100644
index 0000000..694dc1a
--- /dev/null
+++ b/recipes-security/sssd/files/0001-sssd.service.in-use-run-instead-of-var-run.patch
@@ -0,0 +1,28 @@ 
+From 5d3ea263fbc19df41998a9ac725286453fdf7b3a Mon Sep 17 00:00:00 2001
+From: Chen Qi <Qi.Chen@windriver.com>
+Date: Fri, 16 Oct 2020 15:39:41 +0800
+Subject: [PATCH] sssd.service.in: use /run instead of /var/run
+
+Upstream-Status: Pending
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ src/sysv/systemd/sssd.service.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/sysv/systemd/sssd.service.in b/src/sysv/systemd/sssd.service.in
+index 0c515d3..8224b24 100644
+--- a/src/sysv/systemd/sssd.service.in
++++ b/src/sysv/systemd/sssd.service.in
+@@ -10,7 +10,7 @@ EnvironmentFile=-@environment_file@
+ ExecStart=@sbindir@/sssd -i ${DEBUG_LOGGER}
+ Type=notify
+ NotifyAccess=main
+-PIDFile=@localstatedir@/run/sssd.pid
++PIDFile=/run/sssd.pid
+ 
+ [Install]
+ WantedBy=multi-user.target
+-- 
+2.17.1
+
diff --git a/recipes-security/sssd/sssd_1.16.5.bb b/recipes-security/sssd/sssd_1.16.5.bb
index 9784ec7..cf4cd2c 100644
--- a/recipes-security/sssd/sssd_1.16.5.bb
+++ b/recipes-security/sssd/sssd_1.16.5.bb
@@ -22,6 +22,7 @@  SRC_URI = "https://releases.pagure.org/SSSD/${BPN}/${BP}.tar.gz \
            file://0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch \
            file://0001-nss-Collision-with-external-nss-symbol.patch \
            file://0002-Provide-missing-defines-which-otherwise-are-availabl.patch \
+           file://0001-sssd.service.in-use-run-instead-of-var-run.patch \
            "
 
 SRC_URI[sha256sum] = "2e1a7bf036b583f686d35164f2d79bdf4857b98f51fe8b0d17aa0fa756e4d0c0"