Skip to content
Snippets Groups Projects
Commit f7ffa9d7 authored by Joakim Bech's avatar Joakim Bech Committed by Jérôme Forissier
Browse files

Move creation of /data etc. from optee_client.mk to S30optee

For some reason Raspberry Pi 3 with NFS root doesn't allow
tee-supplicant to create a working folder for user 'tee' under the /data
folder. We have found a workaround which is to create the /data
hierarchy and set its permissions in S30optee rather than in the root fs
definition in optee_client.mk.

Fixes: https://github.com/OP-TEE/optee_os/issues/2773



Signed-off-by: default avatarJoakim Bech <joakim.bech@linaro.org>
Tested-by: Joakim Bech <joakim.bech@linaro.org> (RPi3, RPi3+NFS)
Acked-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
parent 9561603f
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@ case "$1" in
chown root:ion /dev/ion && chmod 0660 /dev/ion
[ $? = 0 ] && echo "OK" || echo "FAIL"
fi
printf "Create and set permissions on /data... "
mkdir -p /data/tee && chown -R tee:tee /data/tee && \
chmod 0770 /data/tee
[ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Starting tee-supplicant... "
su tee -c '/usr/sbin/tee-supplicant -d'
[ $? = 0 ] && echo "OK" || echo "FAIL"
......
......@@ -28,9 +28,4 @@ define OPTEE_CLIENT_USERS
test -1 test -1 - - /bin/sh teeclnt,ion Test user, may run TEE client applications
endef
define OPTEE_CLIENT_PERMISSIONS
/data d 755 root root - - - - -
/data/tee d 770 tee tee - - - - -
endef
$(eval $(cmake-package))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment