ASAN: Fix ASAN directory in asan_extract.sh
Move things over to the new layout. Bug: 36458146 Test: m && m SANITIZE_TARGET=address SANITIZE_TARGET_SYSTEM=true Change-Id: I4dba269f82e4f88e39f926c6c2dd3c5efa07b2a1
This commit is contained in:
parent
7b97c1807a
commit
4542eda998
|
@ -25,6 +25,7 @@
|
|||
|
||||
SRC=/system/asan.tar.bz2
|
||||
MD5_FILE=/data/asan.md5sum
|
||||
ASAN_DIR=/data/asan
|
||||
|
||||
if ! test -f $SRC ; then
|
||||
log -p i -t asan_install "Did not find $SRC!"
|
||||
|
@ -43,7 +44,7 @@ if test -f $MD5_FILE ; then
|
|||
fi
|
||||
|
||||
# Just clean up, helps with restorecon.
|
||||
rm -rf /data/lib /data/lib64 /data/vendor/lib*
|
||||
rm -rf $ASAN_DIR
|
||||
|
||||
log -p i -t asan_install "Untarring $SRC..."
|
||||
|
||||
|
@ -52,7 +53,7 @@ bzip2 -c -d $SRC | tar -x -f - --no-same-owner -C / || exit 1
|
|||
|
||||
# Cannot log here, log would run with system_data_file.
|
||||
|
||||
restorecon -R -F /data/lib* /data/vendor/lib*
|
||||
restorecon -R -F $ASAN_DIR/*/lib*
|
||||
|
||||
log -p i -t asan_install "Fixed selinux labels..."
|
||||
|
||||
|
|
Loading…
Reference in New Issue