Re: net.inet.tcp.baddynamic and portmap

2016-04-19 Thread Todd C. Miller
On Tue, 19 Apr 2016 22:37:34 +0100, Stuart Henderson wrote: > in_baddynamic() is being called with the port in network-order, so it > doesn't check correctly. I was nearly there, and Todd saved me from > embarassing myself by sending out a diff with ntohs(localport) in ;) This makes the in_baddyn

Re: net.inet.tcp.baddynamic and portmap

2016-04-19 Thread Stuart Henderson
On 2016/04/19 21:32, Stuart Henderson wrote: > Is net.inet.tcp.baddynamic expected to apply to programs using portmap? Answer: yes. in_baddynamic() is being called with the port in network-order, so it doesn't check correctly. I was nearly there, and Todd saved me from embarassing myself by sendi

net.inet.tcp.baddynamic and portmap

2016-04-19 Thread Stuart Henderson
Is net.inet.tcp.baddynamic expected to apply to programs using portmap? $ sysctl net.inet.tcp.baddynamic | grep -c ,993, 1 $ fstat | grep 993 root rpc.statd 847794* internet stream tcp 0x0 *:993 $ rpcinfo -p | grep 993 1000241 tcp993 status