summaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2021-06-15 16:50:30 +0800
committerArmin Kuster <akuster808@gmail.com>2021-06-20 15:49:16 -0700
commit0705f60b819bc26b46e3afc9568e350785add860 (patch)
tree9c8634659ad30a0584e4f65a0db9a0d49c57e781 /recipes-security
parent48c7b34ec3932ac522a93e631ab9d9e805142af1 (diff)
downloadmeta-security-0705f60b819bc26b46e3afc9568e350785add860.tar.gz
sssd: set pid path with /run
/var/run is deprecated and set pid path with /run to store pid files for the SSSD. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rw-r--r--recipes-security/sssd/sssd_2.5.0.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-security/sssd/sssd_2.5.0.bb b/recipes-security/sssd/sssd_2.5.0.bb
index 4c92519..c699527 100644
--- a/recipes-security/sssd/sssd_2.5.0.bb
+++ b/recipes-security/sssd/sssd_2.5.0.bb
@@ -63,6 +63,7 @@ EXTRA_OECONF += " \
63 --without-python2-bindings \ 63 --without-python2-bindings \
64 --without-secrets \ 64 --without-secrets \
65 --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \ 65 --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \
66 --with-pid-path=/run \
66" 67"
67 68
68do_configure_prepend() { 69do_configure_prepend() {
@@ -88,8 +89,8 @@ do_install () {
88 echo "d /var/log/sssd 0750 - - - -" > ${D}${sysconfdir}/tmpfiles.d/sss.conf 89 echo "d /var/log/sssd 0750 - - - -" > ${D}${sysconfdir}/tmpfiles.d/sss.conf
89 fi 90 fi
90 91
91 # Remove /var/run as it is created on startup 92 # Remove /run as it is created on startup
92 rm -rf ${D}${localstatedir}/run 93 rm -rf ${D}/run
93 94
94 rm -f ${D}${systemd_system_unitdir}/sssd-secrets.* 95 rm -f ${D}${systemd_system_unitdir}/sssd-secrets.*
95} 96}