Exploiting ELF Expansion Variables
backtrace.io
backtrace.io
> NOTE: Various Linux distributions have incorporated patches that restrict symbolic link behavior, preventing security vulnerabilities such as the one we are about to demonstrate.
Linux distributions also restrict hardlink behavior, which addresses this issue. This seems like the key point. In current Linux, by default, you can't create a hardlink to someone else's file, setuid or otherwise.
[0] http://android-developers.blogspot.de/2016/06/android-change...