diff options
author | wollman <wollman@FreeBSD.org> | 2002-06-26 21:46:56 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-06-26 21:46:56 +0000 |
commit | 4a461e9ee15f4073dfc50e849319dcb53fbbd66b (patch) | |
tree | 80b04d6364e59e7b58248d235b345ca8ab74dd11 /usr.sbin | |
parent | c576432afc38d9f90886bb08916452bfa56636f2 (diff) | |
download | FreeBSD-src-4a461e9ee15f4073dfc50e849319dcb53fbbd66b.zip FreeBSD-src-4a461e9ee15f4073dfc50e849319dcb53fbbd66b.tar.gz |
When the -p flag is specified, set an environment variable to the name
of the remote host (or rather, the name as mangled by realhostname_sa())
so that the process can use it to behave differently depending on the
origin on the request. We use this to implement rudimentary visibility
control on our user information.
Make sure that the child process's standard error goes through the same
NVT-ASCII filter as is applied to the standard output.
Don't attempt to call logerr() from the child since stdio is not safe in
a vforked process. Just write a message to fd 2 instead. (Ideally, the
parent would open two pipes, and siphon off our stderr to some place less
public, but I have not attempted to do so in this implementation.)
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions