Move pledge to after getopt, when the finger program becomes known
authorderaadt <deraadt@openbsd.org>
Fri, 3 Aug 2018 15:14:18 +0000 (15:14 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 3 Aug 2018 15:14:18 +0000 (15:14 +0000)
commit19a58c97c6ac669df6ffb98319f0862ab85f223b
tree63eefb34ecbec57d8eec327b90a82297b99b1bd7
parent44b1ca154554d96714322370da269fde9cb6c6b5
Move pledge to after getopt, when the finger program becomes known
(defaults to /usr/bin/finger, but can be redefined with -P option).
Then unveil that program for "x" (execution), and pledge as before.
No other filesystem accesses occur after that point.
libexec/fingerd/fingerd.c