summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-08-28 19:14:42 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2014-08-28 19:14:42 +0800
commit047175e9df5c5dff4c36154bf821c6c8527506a3 (patch)
tree81f1d91e1190443d37f5baa482441465172934c9
parent09a298cf4a4484538f96382b0c08b326304dfa86 (diff)
downloadfvp-armv8-047175e9df5c5dff4c36154bf821c6c8527506a3.tar.gz
init.fvpbase.rc: add patch to restore security context for lava-test-shell
set /data/local/tmp/lava as the directory for files operated by lava components, like lava-test-shell. and set the security context information of /data/local/tmp/lava at boot so that the files and scripts can be read and executed. Change-Id: I8a1c9918d1af361d8e47c672bc3141e3b15379bb Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xinit.fvpbase.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.fvpbase.rc b/init.fvpbase.rc
index 992e6da..c6fe4f6 100755
--- a/init.fvpbase.rc
+++ b/init.fvpbase.rc
@@ -29,6 +29,9 @@ on fs
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
+ # Set SELinux security contexts for files used by lava.
+ restorecon_recursive /data/local/tmp/lava
+
on boot
setprop ARGH ARGH