1 /* $NetBSD: hosts_ctl.c,v 1.2 1997/10/09 21:20:32 christos Exp $ */
4 * hosts_ctl() combines common applications of the host access control
5 * library routines. It bundles its arguments then calls the hosts_access()
6 * access control checker. The host name and user name arguments should be
7 * empty strings, STRING_UNKNOWN or real data. If a match is found, the
8 * optional shell command is executed.
10 * Restriction: this interface does not pass enough information to support
11 * selective remote username lookups or selective hostname double checks.
13 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
16 #include <sys/cdefs.h>
19 static char sccsid
[] = "@(#) hosts_ctl.c 1.4 94/12/28 17:42:27";
21 __RCSID("$NetBSD: hosts_ctl.c,v 1.2 1997/10/09 21:20:32 christos Exp $");
29 /* hosts_ctl - limited interface to the hosts_access() routine */
31 int hosts_ctl(daemon
, name
, addr
, user
)
37 struct request_info request
;
39 return (hosts_access(request_init(&request
,