DynamoRIO / DynamoRIO/dynamorio
Android application launch fail
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
I'm trying to launch a 32-bit application on an Android device using drrun from **DynamoRIO-ARM-Android-EABI-7.1.0-1**, but it failed every time. Part of the log I pulled goes like this:
```
09-09 21:26:24.431 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:24.426 19334 19334 I drrun : type=1400 audit(0.0:94048): avc: denied { open } for dsm=1 path="/data/DynamoRIO_32/lib32/debug/libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1
09-09 21:26:24.429 777 785 E selinux_dmd: audit(1568035584.426:94047): avc: denied { execute } for dsm=1 pid=19334 comm="drrun" name="libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1 CMD=(null)
09-09 21:26:24.429 777 785 I iMonitor: send: 940000012
09-09 21:26:24.431 777 785 E selinux_dmd: audit(1568035584.426:94048): avc: denied { open } for dsm=1 pid=19334 comm="drrun" path="/data/DynamoRIO_32/lib32/debug/libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.431 777 785 I iMonitor: send: 940000012
09-09 21:26:24.431 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:24.433 777 785 E selinux_dmd: audit(1568035584.426:94049): avc: denied { execute_no_trans } for dsm=1 pid=19334 comm="drrun" path="/data/DynamoRIO_32/lib32/debug/libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.433 777 785 I iMonitor: send: 940000012
09-09 21:26:24.433 777 785 E selinux_dmd: audit(1568035584.430:94053): avc: denied { read } for dsm=1 pid=19334 comm="app_process32" name="version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.430 19334 19334 I app_process32: type=1400 audit(0.0:94053): avc: denied { read } for dsm=1 name="version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1
09-09 21:26:24.434 777 785 E selinux_dmd: audit(1568035584.430:94054): avc: denied { open } for dsm=1 pid=19334 comm="app_process32" path="/proc/version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.430 19334 19334 I app_process32: type=1400 audit(0.0:94054): avc: denied { open } for dsm=1 path="/proc/version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1
09-09 21:26:24.431 777 785 E selinux_dmd: audit(1568035584.426:94048): avc: denied { open } for dsm=1 pid=19334 comm="drrun" path="/data/DynamoRIO_32/lib32/debug/libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.431 777 785 I iMonitor: send: 940000012
09-09 21:26:24.431 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:24.433 777 785 E selinux_dmd: audit(1568035584.426:94049): avc: denied { execute_no_trans } for dsm=1 pid=19334 comm="drrun" path="/data/DynamoRIO_32/lib32/debug/libdynamorio.so" dev="sdd67" ino=8916 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.433 777 785 I iMonitor: send: 940000012
09-09 21:26:24.433 777 785 E selinux_dmd: audit(1568035584.430:94053): avc: denied { read } for dsm=1 pid=19334 comm="app_process32" name="version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.434 777 785 E selinux_dmd: audit(1568035584.430:94054): avc: denied { open } for dsm=1 pid=19334 comm="app_process32" path="/proc/version" dev="proc" ino=4026532056 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1 CMD=/system/bin/app_process32
09-09 21:26:24.440 833 1338 I System.out.cpp: getFinalPath finalPath=event_id
09-09 21:26:24.440 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:24.441 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:24.446 833 1338 I System.out.cpp: getFinalPath finalPath=event_id
09-09 21:26:24.450 833 1338 I System.out.cpp: getFinalPath finalPath=event_id
09-09 21:26:24.487 17247 17836 D HwRecentsTaskUtils: refreshToCache
09-09 21:26:24.487 17247 17836 D HwRecentsTaskUtils: searchFromDate
09-09 21:26:24.489 2112 3875 E HsmCoreServiceImpl: onTransact in code is: 103
09-09 21:26:24.489 2112 3875 I MediaProcessHandler: playingUids:
09-09 21:26:24.493 17247 17836 I RecentsTaskLoadPlan: to show tasks size is 0
09-09 21:26:24.517 19333 19333 I wrap_test_wuba.sh:
......
09-09 21:26:30.972 19333 19333 I wrap_test_wuba.sh:
09-09 21:26:30.974 19333 19333 I wrap_test_wuba.sh: wrap_test_wuba.sh terminated by exit(255)
09-09 21:26:31.031 623 623 I Zygote : Process 19321 exited cleanly (255)
09-09 21:26:31.032 623 623 W Zygote : Error reading pid from wrapped process, child may have died
```
Hope that someone can give some insight on what's going on and some instructions on how to solve this.
Thanks a lot.
Contributor guide
Assessment
This issue has not been assessed yet.