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


Chen Qi
 

/var/run has been deprecated by systemd, so use /run instead,
as suggested by systemd.

Signed-off-by: Chen Qi <Qi.Chen@...>
---
...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

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@...>
+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@...>
+---
+ 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"
--
2.17.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.