EXDEV on link() between /data/app/~~id==/com.exampleid==/libs/arch/file.so and /data/data/com.example/file.so

17 views
Skip to first unread message

Nieważne Nieważne

unread,
Dec 26, 2021, 2:39:29 PM12/26/21
to android-ndk
EXDEV on link() between /data/app/~~id==/com.exampleid==/libs/arch/file.so and /data/data/com.example/file.so

I have tried to create the hard link outside of the application, from what I can tell toybox's ln utility also receives an EXDEV error, through verifying via strace;

I am not sensing that the 2 folders are in 2 different mount spaces(not even bind mounts), what's the issue here using the x86_64 android 12 emulator.

I am just trying to satisfy the possible SELinux policy implemented on W^X(and well the implications of it), while still being able to run exec() and release the application on gplay store, while also fixing the directory structure+filenames through the use of hardlinks.
Reply all
Reply to author
Forward
0 new messages