| Summary: | /usr/sbin/portmap cannot listen to localhost UDP only (patch) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Rasputin <rasputnik> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.4-PRERELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Rasputin
2001-08-31 14:20:00 UTC
The patch seems to work. Bug 31393 (submitted by me) should be marked as a duplicate. -- Frank Tobin http://www.neverending.org/~ftobin/ State Changed From-To: open->closed Fixed by design. Both -CURRENT and -STABLE now use rpcbind which has the -h option implemented. State Changed From-To: closed->patched Doh! This is only fixed in -CURRENT. Could we get this patch applied to stable, please? Robert * Robert Faulds <robert@mongonet.net> [1102 20:02]: > Could we get this patch applied to stable, please? Please don't, it would be embarassing. I sent that patch 3 years ago, when I was only halfway through K&R. I can't believe it's taken that long to be looked at. I suspect no-one had the heart to close it, saying 'this is ugly as sin, I'm not committing this').. It was a kludge at the time (there *must* be a saner way to check an IP than to use strcmp) and it's not right to commit such a mess. A better fix would be to backport rpcbind to 4.* - I just checked that on a 5.3 system and it works as documented - then the portmap code could be taken out and shot. NB: this doesn't work for tcp ports in any case, and I don't know enough about NFS to know why '-h' only applies to udp. So a firewall would be a safer option if you are concerned about exposing ports. But feel free to use the patch if it's any use to you. -- With that big new contract, I've been able to make those government mandated upgrades you've all been suing me about. - Prof. Farnsworth Rasputin :: Jack of All Trades - Master of Nuns State Changed From-To: patched->closed Fixed but will not be MFCed to RELENG_4 |