Add pledge & unveil.
authorflorian <florian@openbsd.org>
Fri, 16 Aug 2024 16:00:30 +0000 (16:00 +0000)
committerflorian <florian@openbsd.org>
Fri, 16 Aug 2024 16:00:30 +0000 (16:00 +0000)
commit5b1c629843a1385acb9b52fab5c1511797a7f61d
tree8b3239d24003d85a21576f93b850a4571088a99b
parenta6d36058f3be82bcfeb74e0129bf57ad31a9faae
Add pledge & unveil.

The rpc library needs read access to the rpc database in
/etc/rpc. Other than that rpcinfo only uses AF_INET sockets.

With -b, rpcinfo(8) uses gethostbyaddr(3) to report hosts that
responded, so add "dns" pledge as well.

OK bluhm, miod
usr.bin/rpcinfo/rpcinfo.c