Re: rpcbind does not honor -h flag

From: Garrett Cooper <yanegomi_at_gmail.com>
Date: Fri, 31 Aug 2012 01:14:40 -0700
On Fri, Aug 31, 2012 at 1:05 AM, Борис Самородов <bsam_at_passap.ru> wrote:
> Hi All,
>
> I've it at 9.1-PRERELEASE and I've got a chance to test at CURRENT.
> It's the same (mind a line with "udp4 *:768" at sockstat info):
> -----
> % sockstat -4l | grep rpcbind
>
> % grep rpcbind /etc/rc.conf.local
> rpcbind_flags="-h 192.168.119.6"
> rpcbind_enable="YES"
>
> % sudo /etc/rc.d/rpcbind start
> Starting rpcbind.
>
> % sockstat -4l | grep rpcbind
> root     rpcbind    4265  9  udp4   127.0.0.1:111         *:*
> root     rpcbind    4265  10 udp4   192.168.119.6:111     *:*
> root     rpcbind    4265  11 udp4   *:768                 *:*
> root     rpcbind    4265  12 tcp4   127.0.0.1:111         *:*
> root     rpcbind    4265  13 tcp4   192.168.119.6:111     *:*
>
> % uname -a
> FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #31 r239793: Wed Aug
> 29 03:00:30 SAMT 2012     bsam_at_bsam.wart.ru:/usr/obj/usr/src/sys/BBX  i386

This is a generic rc(5) bug:

$ sudo env rpcbind_flags="-6" /etc/rc.d/rpcbind restart
Stopping rpcbind.
Waiting for PIDS: 509.
Starting rpcbind.
$ ps auxww | grep rpcbind
root      776   0.6  0.0  14056  1844 ??  Ss    1:07AM      0:00.02
/usr/sbin/rpcbind
gcooper   778   0.0  0.0  16196  1660  1  S+    1:07AM      0:00.00 grep rpcbind

$ sudo env rpcbind_flags="-6" /etc/rc.d/rpcbind restart
rc_flags =
rc_flags =
Stopping rpcbind.
Waiting for PIDS: 801.
rc_flags =
Starting rpcbind.
$ sudo env sshd_flags="blahblahblah" /etc/rc.d/sshd restart
rc_flags =
rc_flags =
Stopping sshd.
Waiting for PIDS: 613.
rc_flags =
Starting sshd.
$ ps auxww | grep sshd
root      861   0.0  0.0  28728  3668 ??  Is    1:11AM      0:00.00
/usr/sbin/sshd
root    84730   0.0  0.0  47812  4040 ??  Is   Wed09AM      0:00.15
sshd: gcooper [priv] (sshd)
gcooper 84732   0.0  0.0  47812  4028 ??  I    Wed09AM      0:02.73
sshd: gcooper_at_pts/0 (sshd)
root    88236   0.0  0.0  47812  4040 ??  Is    8:43AM      0:00.16
sshd: gcooper [priv] (sshd)
gcooper 88238   0.0  0.0  47812  4028 ??  S     8:43AM      0:02.29
sshd: gcooper_at_pts/1 (sshd)
root    88262   0.0  0.0  47812  4040 ??  Is    8:46AM      0:00.10
sshd: gcooper [priv] (sshd)
gcooper 88264   0.0  0.0  47812  4028 ??  S     8:46AM      0:00.80
sshd: gcooper_at_pts/2 (sshd)
gcooper   863   0.0  0.0  16196  1668  1  S+    1:11AM      0:00.01 grep sshd
$ uname -a
FreeBSD bayonetta.local 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #13
r239292M: Wed Aug 15 02:42:48 PDT 2012
gcooper_at_bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA
amd64

    Please file a PR against rc ASAP.
Thanks,
-Garrett
Received on Fri Aug 31 2012 - 06:14:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC