From afd1b499b4e690f9fd250cc2c009cf59eb8839a5 Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Wed, 29 Mar 2023 22:17:45 +0200 Subject: Fix for user and group of /home/agl-driver The private nssdb introduced wrong access rights for /home/agl-driver through the package. Fix it till we have it reworked. Bug-AGL: SPEC-4599 Change-Id: I665b51f8473f64785c64c55359b5e0e702050e9a Signed-off-by: Jan-Simon Moeller (cherry picked from commit 1e62ea70abd523482e4a181737e7202280a30ce3) --- recipes-connectivity/kuksa-val/kuksa-val_git.bb | 2 +- recipes-core/nss/nss-agl-driver-db_git.bb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-connectivity/kuksa-val/kuksa-val_git.bb b/recipes-connectivity/kuksa-val/kuksa-val_git.bb index 2c1966ff6..48cda1081 100644 --- a/recipes-connectivity/kuksa-val/kuksa-val_git.bb +++ b/recipes-connectivity/kuksa-val/kuksa-val_git.bb @@ -79,7 +79,7 @@ do_install:append() { pkg_postinst_ontarget:${PN}-client-certificates () { certutil -A -d /home/agl-driver/.pki/nssdb -n "KuksaRootCA" -t "pC,," -i ${sysconfdir}/kuksa-val/CA.pem - chown agl-driver:agl-driver -R /home/agl-driver/.pki/ + chown agl-driver:agl-driver -R /home/agl-driver/ } # Put client certificates into their own package so we can avoid diff --git a/recipes-core/nss/nss-agl-driver-db_git.bb b/recipes-core/nss/nss-agl-driver-db_git.bb index ba203d4e6..3d8aa5f4b 100644 --- a/recipes-core/nss/nss-agl-driver-db_git.bb +++ b/recipes-core/nss/nss-agl-driver-db_git.bb @@ -12,10 +12,11 @@ do_compile[noexec] = "1" do_install() { mkdir -p ${D}/home/agl-driver/.pki/nssdb certutil -N -d ${D}/home/agl-driver/.pki/nssdb --empty-password + chown -R 1001:1001 ${D}/home/agl-driver } pkg_postinst_ontarget:${PN} () { - chown agl-driver:agl-driver -R /home/agl-driver/.pki/ + chown agl-driver:agl-driver -R /home/agl-driver/ } FILES:${PN} += "/home/agl-driver/.pki/*" -- cgit 1.2.3-korg