mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
optee-client: drop privileges of tee-supplicant
Stop the tee-supplicant being run with root privileges when the system is not using systemd. Signed-off-by: Gyorgy Szing <gyorgy.szing@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -32,6 +32,8 @@ do_install:append() {
|
||||
install -D -p -m0755 ${UNPACKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant
|
||||
sed -i -e s:@sysconfdir@:${sysconfdir}:g \
|
||||
-e s:@sbindir@:${sbindir}:g \
|
||||
-e s:@supluser@:teesuppl:g \
|
||||
-e s:@suplgroup@:teesuppl:g \
|
||||
${D}${sysconfdir}/init.d/tee-supplicant
|
||||
fi
|
||||
install -o teesuppl -g teesuppl -m 0700 -d ${D}${localstatedir}/lib/tee
|
||||
|
||||
@@ -14,7 +14,7 @@ test -f $DAEMON || exit 0
|
||||
test -f @sysconfdir@/default/$NAME && . @sysconfdir@/default/$NAME
|
||||
test -f @sysconfdir@/default/rcS && . @sysconfdir@/default/rcS
|
||||
|
||||
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON -- -d $OPTARGS"
|
||||
SSD_OPTIONS="-c @supluser@:@suplgroup@ --oknodo --quiet --exec $DAEMON -- -d $OPTARGS"
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user