Add pledge support to getent(1).
authordoug <doug@openbsd.org>
Sat, 10 Oct 2015 05:26:57 +0000 (05:26 +0000)
committerdoug <doug@openbsd.org>
Sat, 10 Oct 2015 05:26:57 +0000 (05:26 +0000)
commit20bf8b67152daadade67bbe1404dbcc2d8c2bce9
tree0046a442433ed4dcb6011dd8f9bd1f2be1ac8bfa
parenta5a6694e7f11def68ef57a5cdb05ee2daa53eb2f
Add pledge support to getent(1).

This pledges the superset of all requests for the various getent databases
and then drops to the minimum for the chosen database.

ok deraadt@
usr.bin/getent/getent.c