User namespaces progress
User namespaces progress
Posted Jan 3, 2013 17:44 UTC (Thu) by andresfreund (subscriber, #69562)In reply to: User namespaces progress by Cyberax
Parent article: User namespaces progress
It depends a bit on how you want to start java, but in general you can do stuff like:
$ nc -l 234
nc: Permission denied
$ cp `which nc` /tmp/nc && sudo setcap cap_net_bind_service+ep /tmp/nc
$ /tmp/nc -l 234
^C
$ nc -l 234
nc: Permission denied
$ cp `which nc` /tmp/nc && sudo setcap cap_net_bind_service+ep /tmp/nc
$ /tmp/nc -l 234
^C
In many scenarios you probably will end up using something like capsh or pam-cap.
