You can do this without kernel hacking, by letting a priviliged program
allocate the port. If you really want to hack kernel, look for suser()
calls in net/ipv4/af_inet.c. You'll see a line where it checks if the port
number is below a value, and at the same time checks that the user is the
superuser. Of course you can hack it to allow users in a special group to
access a port to make it more flexible. Be sure you know what you're doing
first.
/Magnus
magnus@abc.se