Re: tcp socket permission (chroot linux in android)

664 views
Skip to first unread message

Johan Nestaas

unread,
Dec 17, 2013, 2:11:42 PM12/17/13
to android-...@googlegroups.com
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

Thanks,
Johan

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

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 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.407 ms

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


Many thanks!
Reply all
Reply to author
Forward
0 new messages