diff mbox series

[meta-oe,2/5] mariadb: set pam module path to ${base_libdir}/security

Message ID 20250106082152.882222-2-yi.zhao@windriver.com
State Accepted
Headers show
Series [meta-oe,1/5] snapper: set pam module path to ${base_libdir}/security | expand

Commit Message

Yi Zhao Jan. 6, 2025, 8:21 a.m. UTC
Set pam module path to ${base_libdir}/security as this is the default
path in libpam.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-oe/recipes-dbs/mysql/mariadb.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index f3b8b5eed4..d3192cc59c 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -192,7 +192,7 @@  do_install() {
         pam_so=$(find ${D} -name pam_user_map.so)
         if [ x"${pam_so}" != x ]; then
             pam_dir=$(dirname ${pam_so})
-            mv ${pam_dir} ${D}/${libdir}
+            mv ${pam_dir} ${D}/${base_libdir}
             rmdir --ignore-fail-on-non-empty ${pam_dir%security}
         fi
     fi
@@ -346,7 +346,7 @@  FILES:${PN}-server = "\
     ${sbindir}/mysqld \
     ${sbindir}/mariadbd \
     ${libdir}/plugin/*.so \
-    ${libdir}/security/*.so \
+    ${base_libdir}/security/*.so \
     ${libdir}/plugin/auth_pam_tool_dir/auth_pam_tool \
     ${datadir}/mysql/ \
     ${localstatedir}/mysql/ \