| Normal user open inport less that 1024 |
|
|
|
| Written by Carl Friis-Hansen |
| Saturday, 22 November 2008 20:55 |
|
The only way for a program to open ports below 1024 is to start as root. However, the program must drop privileges for all other issues that the port privilege, otherwise a disaster is waiting to happen.
Olaf Kirch gives the key to this in his small article from 2006: http://www.lst.de/~okir/blackhats/node125.html I imagine that one could use Olaf's program to spawn a child process that would inherit the raised privileges for setting up ports below 1024. I will work on that next week.
|