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 <jsmoeller@linuxfoundation.org>
pkg_postinst_ontarget:${PN}-client-certificates () {
certutil -A -d /home/agl-driver/.pki/nssdb -n "KuksaRootCA" -t "pC,," -i ${sysconfdir}/kuksa-val/CA.pem
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
}
# Put client certificates into their own package so we can avoid
do_install() {
mkdir -p ${D}/home/agl-driver/.pki/nssdb
certutil -N -d ${D}/home/agl-driver/.pki/nssdb --empty-password
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} () {
}
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/*"
}
FILES:${PN} += "/home/agl-driver/.pki/*"