rpcbind in "secure" mode only allows calls from the loopback address. The check for this is "addr == loopback && port < reserved". This is too strict, why the restriction on the port?
Because any normal user can bind to ports > reserved? So I don't think it's too strict... therefore can we close the bug? But one thing perhaps,.. shouldn't the test be for <= reserved instead of just < ? Cheers, Chris.
??
CAP_NET_BIND_SERVICE
Bind a socket to Internet domain privileged ports (port numbers
less than 1024).
Trying out:
$ id
uid=1000
$ nc -l 20000
$ nc -l 400
nc: Permission denied
$ nc -l 50
nc: Permission denied
$ nc -l 512
nc: Permission denied
Cheers,
Chris.