-
-
Notifications
You must be signed in to change notification settings - Fork 55
Enable inet socket
If the Debian installed by lildebi doesn't allow to open network sockets, the reason could be that the kernel is compiled with CONFIG_ANDROID_PARANOID_NETWORK set to yes. This is the Android permissions at work. Users need to have `INTERNET` permission, and that is implemented using a group id (gid). You can observe this even for simple commands like ping where you get an error like
socket: Permission denied
To To open inet sockets anyway, you've to setup the Android permissions groups and users, then add the user (even root) to the group:
dpkg -i /data/data/info.guardianproject.lildebi/app_bin/android-permissions_0.1_all.deb
adduser root inet
Log out and log in again and it should work.
If you've daemons like mysql which run under specific non-root accounts you've to add the corresponding users to the aid_inet group, e.g.
adduser mysql inet
There's an explanation on http://answerpot.com/showthread.php?3002866-non-root+users+cant+use+network#sthash.YtWqIQD9.dpbs for this
Also, the `android-permissions` Debian package makes this much easier: https://packages.debian.org/android-permissions