]> git.neil.brown.name Git - portmap.git/commit
Treat ports below 512 as reserved ports.
authorNeil Brown <neilb@suse.de>
Sun, 15 Jul 2007 23:18:55 +0000 (09:18 +1000)
committerNeil Brown <neilb@suse.de>
Sun, 15 Jul 2007 23:18:55 +0000 (09:18 +1000)
commitbe191a073896a4e87384f857cb25cdc7e9047a6d
treef1763f885a80ca1290d11838c8539b8f04a927a2
parent7847207aed1b44faf077eed14a9ac9c68244eba5
Treat ports below 512 as reserved ports.

Though applications trying to bind a reserved port normally look in
the range 512-1024 (because below there is very dense with well known
ports), all ports 1-1024 are reserved in that only root can bind to them.
So when checking if a port is 'reserved' we should allow it anywhere in
the full range.

This allows sunrpc.minresvport to be set low and portmap will still
allow mappings made by the kernel.

The status of 0 as a reserved port is doubtful, but
check_privileged_port will never be called with a 0, so it doesn't
matter.
pmap_check.c