-
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
Error on Android L #26
Comments
I think Android L isn't quite finished, so we should wait until it is stable and specs are finalized. @Vilbrekin crash isn't good - perhabs we can show an info box and deny the start of tinc? |
Well, I guess he means tincd process can't start, and the error is displayed in the log. I don't think the android application itself crashes in such case. Then the question is :is it linked to android L, or the device itself? |
Same problem on Nexus 4 with released Android 5.0 :( |
I have updated to Lollipop also. Same issue here. I think we have to compile both versions and install the right one. Other option is to download a signed version of tinc from http or release the binaries in a separate product in google play store where user is prompted to install this binary. This can solve another issue with beta releases of tinc (see #25 ) |
Thanks for the recap. I think we'll si,ply use multiple APKs support on the play store to leave current version for legacy devices, and require Android 4.1+ for new Tinc GUI releases. I'll enable back PIE for next Tinc GUI release. Some interesting reading: http://stackoverflow.com/questions/24818902/running-a-native-library-on-android-l-error-only-position-independent-executab |
Target Android 4.1+, building PIE executables. Fixes #26.
I've just built a testing 0.9.12 release (https://github.com/Vilbrekin/tinc_gui/releases/tag/RELEASE_0.9.12). |
Does not work for me with same error "only PIE are supported" |
Indeed, did a stupid typo yesterday. I just updated the 0.9.12 release. Could you please retry? (Sorry, I d'ont have L on my OPO yet, and the simulator doesn't highlight the bug). |
tincd now starts, trying to connect, connects, but terminated without any error even with debugging level 5. Sorry, don't have experience with android debugging, but I'll try provide logcat logs. |
Hmmm, it seems, something wrong with SELinux :(
|
Guess we'll have to understand how to work with SELinux then. |
If I run daemon from root adb shell - it works! But there is hell with routing :)
There are many ip rules with fwmarks, iptables, etc, but tincd works!
Stay tuned :) |
Okay, I solved my routing problems with adding routes to table local_network in subnet-{up,down}, but this is offtopic.
Something wrong with tinc_gui, it seems tinc_gui kills tincd. When I push start button and before tincd terminated, tincd works for less then one second, even pings works :) |
I see the same issue with tincd getting killed. Status says connected and the it's killed immediately thereafter. Here in s the logcat: 11-27 08:38:38.501 D/tinc_gui(15031): Refreshing preferences for key |
Concerning the autokill issue, it should occur only if/when tincd process releases its standard output. The simplest explanation would be process was already finished (because it couldn't map the TAP interface due to SELinux for example). |
Any news? Do anybody see the silver lining on the horizon? |
You can launch tincd from local console without GUI for now. It's little uncomfortable, but it works. |
How do you launch tincd via the console? Can it be automated using tasker? |
You can use JuiceSSH (for example) to lauch local console, then run commands like:
You can find tincd path with adb logcat while using tincd_gui. |
many thanks Ivan, I did try via terminal, but unsuccsefull, need read and 2014-12-06 0:00 GMT+01:00 Ivan Strokanev [email protected]:
|
I've been able to reproduce the issue inside Android emulator. tincd is not terminated by the GUI, but because it gets denied all access by SELinux policy, and thus kills itself.
I can also confirms it's working fine when launched manually from terminal. I need to figure out why SElinux behaves differently in both cases. |
Got it. Seems like the context used when calling su from the app is "u:r:init:s0" (which gets restricted by selinux), while the context from adb shell is "u:r:su:s0". |
Built a new beta release. Feedback would be appreciated. |
It works very good, thank you very much! :) |
It works now! but I am still experiencing problems: configuration working 2014-12-15 2:32 GMT+01:00 Vilbrekin [email protected]:
|
When trying in the emulator, I saw my -up scripts got their ip commands rejected. Is it the same for you? Could be that ip binary is not in the same path on lollipop. |
Getting closer for me. tinc now runs in the gui but selinux still blocks the up/down scripts from running. Same as earlier issue reported: The context is still being blocked. Perhaps if you execute the scripts in a subshell with the right context. |
How can I check it? I am novice [?], don't forget it... Script started, but 2014-12-15 23:35 GMT+01:00 Vilbrekin [email protected]:
|
working for me with SELINUX and Android 5.0 |
@kjansik you cant check it with standard android and your mobil phone. you need a pc an use console tools. you connect over adb to your phone and act as if you are on a linux station. |
No problem with adb for me. Just don't know what to look for in iptables...
|
Hi. VPN_GATEWAY=192.168.6.30 ip rule del from all lookup 100 |
OS Android 6.0.1 (CM13) |
I was playing around with the latest developer preview of Android L and noticed that Tinc is broken. When I start the service I see the following error:
error: only position independent executables (PIE) are supported
tincd terminated
The text was updated successfully, but these errors were encountered: