Skip to content
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

VPN permissions (to access /dev/net/tun without Superuser) #6

Closed
msva opened this issue Dec 22, 2013 · 4 comments
Closed

VPN permissions (to access /dev/net/tun without Superuser) #6

msva opened this issue Dec 22, 2013 · 4 comments

Comments

@msva
Copy link

msva commented Dec 22, 2013

Hi.
I just noticed that tinc-gui doesn't notice in Manifest that it needs vpn privileges, so then it can't access tun interface, because at least on my device it is:
shell@android:/etc/tinc/mva # ls /dev/tun -l
crw-rw---- system vpn 10, 200 1970-08-14 18:08 tun

(so, tinc app should have vpn group pemissions to have access).

P.S. Also, I think, it'd be nice to have some minimalistic internal text editor (it'll allow to keep tinc config directory and files inaccessible by other apps)

@msva
Copy link
Author

msva commented Dec 22, 2013

Also, I guess, it'd need some network-related (possibly, MODIFY_NETWORK_ACCOUNTING, or something like that) permissions to be able to manage IP-addresses (via iproute2) on tun-interface from tinc-up script

@msva
Copy link
Author

msva commented Jan 30, 2014

Actually, manuals says that it is android.permission.BIND_VPN_SERVICE
but I can't confirm it, since beug-compiled tinc_gui still has no permissions to tun :(

@ZyanKLee
Copy link

ZyanKLee commented Mar 4, 2014

I can confirm this issue exists on google nexus 4 (2012 generation) with android 4.4.2 as well.

@Vilbrekin
Copy link
Owner

Looked like a good lead. However BIND_VPN_SERVICE permissions simply allows to build a simple VPN service, without giving direct access to /dev/tun file of vpn group (at least from what I see).
This would require a major rewrite of tinc GUI and support only TUN device (not TAP).

Duplicate of #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants