Re: tcp socket permission (chroot linux in android)

Showing 1-1 of 1 messages
Re: tcp socket permission (chroot linux in android) Johan Nestaas 12/17/13 11:11 AM
Hi Steve,

Did you ever get this to work?
I'm running into the same issue, chroot into Debian Wheezy with postgresql-9.1:

2013-12-17 18:39:47 UTC FATAL:  could not create any TCP/IP sockets
2013-12-17 18:41:02 UTC LOG:  could not create IPv4 socket: Permission denied


On Saturday, October 6, 2012 8:50:15 AM UTC-7, steve wrote:

I am using a debian chroot environment inside my android phone and try to install postgresql.

postgresql is using the user "postgres" but is unable to bind a socket.

I tried as root (on mysqld, because postgresql cannot be run as root by config). Working but a real security mess - ah, and i need postgre ;)

How to permit socket access for a user (inside a chroot)?

// example 

root@android-b:~# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=0.407 ms

root@android-b:~# su postgres
postgres@android-b:/root$ ping
socket: Permission denied

Many thanks!