-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working with samsing devices running SELINUX set to enforcing #28
Comments
I found that is I copy the tincd binary to the /system folder rather than in /data, the binary works perfectly again and csn execute all scripts. Obviously the gui doesn't work anymore.... but at least I can script it to start and stop now.... |
I think this is a limitation of the security feature "SE Linux". |
Do we have the ability to change the path in the tinc_gui? If not, then it
|
Only option would be to copy tincd binary to /system. If you like to have a custom path, you can compile tinc_gui on your own. |
While i understand what your saying, it renders the gui unusable for anyone
|
Indeed, we might consider adding the hability to install into /system. |
@calisro can u check the original version of Vilbrekin and execute this: see http://cygery.com/wordpress/2014/06/29/android-l-selinux-root-apps/ Maybe we can set the correct context of the tincd binary?! |
That command executes and does do something. Its hard to test anything in
|
Did some further investigations: If you change tincd to another file context, e.g. @calisro try changing system context with chcon command or try executing |
I tried with a few different contexts but still failed witth the same
|
Thanks for your inputs. I'll deliver next version with PIE enabled, limited to 4.1+ devices. |
Sorry for late reply.
Should be: maybe you can correct this and merge it back to master (ndk studio should be developed in a separate branch :P ) |
Already fixed it in latest commit: https://github.com/Vilbrekin/tinc_gui/blob/lollipop/app/src/main/java/org/poirsouille/tinc_gui/TincdService.java#L210 |
I've stuck with same 127 error on S4, but copying tincd binary to /system and symlinking it back for GUI worked for me. Try:
I think authors could include this trick via special button (e.g. "install tincd binary to system") to workaround issue. |
My device is rooted and knox is disabled but its a stock rom running SELINUX in enforcing mode (Samsung Galaxy S5). The issue is that the post up scripts do not get run. They fail with an error 127 regardless of what is in them. This is selinux preventing it. I tried with and without your variable for command interpretor. Didn't make a difference. I can get tinc working by running those scripts after the fact so I know everything is set up properly.
The text was updated successfully, but these errors were encountered: