hosts_access.3 (2010 09)
h
hosts_access(3) hosts_access(3)
contain valid data or STRING_UNKNOWN
. hosts_ctl() returns zero if access should be denied.
The allow_severity and deny_severity variables determine how accepted and rejected requests may be
logged. They must be provided by the caller and may be modified by rules in the access control tables.
The rfc931_timeout variable determines the timeout value for the client’s username lookup. It must be
set with a positive value and a value of 0 disables the username lookup.
RETURN VALUE
The
request_init()
and request_set()
functions return a pointer to the request_info struc-
ture. The members of the returned structure are initialized and updated with the values passed to the
respective functions,
request_init()
and request_set()
.
The
hosts_access()
and hosts_ctl() functions return 1 if the access is granted and
0 if the
access is denied, for the requested service.
DIAGNOSTICS
Problems are reported via
syslogd, the syslog daemon, at info, notice, warning and err lev-
els.
WARNINGS
hosts_access() uses the
strtok() library function. This may interfere with other code that relies
on
strtok().
AUTHOR
These routines were developed by
Wietse Venema (wietse@wzv.win.tue.nl)
Department of Mathematics and Computing Science
Eindhoven University of Technology
Den Dolech 2, P.O. Box 513,
5600 MB Eindhoven, The Netherlands
FILES
/etc/hosts.allow access control tables.
/etc/hosts.deny access control tables.
SEE ALSO
hosts_access (5) format of the access control tables.
hosts_options(5) optional extensions to the base language.
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010