File: hosts_access.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (109 lines) | stat: -rw-r--r-- 4,251 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.\"WORD:	structure	ȥ饯
.TH HOSTS_ACCESS 3
.SH ̾
hosts_access, hosts_ctl, request_init, request_set \- 
ȥ饤֥
.SH 
.nf
#include "tcpd.h"

extern int allow_severity;
extern int deny_severity;

struct request_info *request_init(request, key, value, ..., 0)
struct request_info *request;

struct request_info *request_set(request, key, value, ..., 0)
struct request_info *request;

int hosts_access(request)
struct request_info *request;

int hosts_ctl(daemon, client_name, client_addr, client_user)
char *daemon;
char *client_name;
char *client_addr;
char *client_user;
.fi
.SH 
ΥɥȤ롼 \fIlibwrap.a\fR 饤֥
ΰǤ롣Υ饤֥ϡΥ롼˽
ȥ񼰤󶡤롣Υȥˤϡ롼˹
פ硢륳ޥɤ¹ԤǤȤץǽޤ
Ƥ롣
.PP
request_init() ϡ饤ȤΥꥯȤˤĤƤξΥ
饯롣request_set() ϡǤ˽Ƥ
ȤΥȥ饯򹹿뤿ˤĤɤδؿ 
key-value Ȥ ѿ-(variable-length) ΥڥˤꥹȤ
ơǽΰ(first argument)֤ΥꥹȤϥ
 key ǽ롣٤Ƥʸͤİ(argument)ϥԡ롣
ͭ key (бͤΥ) ϰʲΤȤ:
.IP "RQ_FILE (int)"
ꥯȤȴϢդեǥץ
.IP "RQ_CLIENT_NAME (char *)"
饤ȥۥ̾
.IP "RQ_CLIENT_ADDR (char *)"
饤ȤΥͥåȥɥ쥹̾(a printable representation)
.IP "RQ_CLIENT_SIN (struct sockaddr_in *)"
饤ȤΥͥåȥɥ쥹Ǥ̾(an internal
printable representation)ȥݡֹ档ȥ饯Ȥϥԡ
ʤ
.IP "RQ_SERVER_NAME (char *)"
ɥݥȤˤ륵ФΥۥ̾
.IP "RQ_SERVER_ADDR (char *)"
ɥݥȤˤ륵Хɥ쥹̾(a printable representation)
.IP "RQ_SERVER_SIN (struct sockaddr_in *)"
ɥݥȤˤ륵ФΥͥåȥɥ쥹Ǥ̾(an
internal printable representation)ȥݡֹ档ȥ饯
Ȥϥԡʤ
.IP "RQ_DAEMON (char *)"
ХۥȤưǡ̾
.IP "RQ_USER (char *)"
ꥯȤȯԤ桼Υ饤ȥۥȤˤ̾
.PP
hosts_access()  \fIhosts_access(5)\fR Υޥ˥奢ڡ
⤵Ƥ롢ȥơ֥򻲾Ȥ롣
ΥɥݥȾͭǤä硢
׵˱ƥۥ̾ȥ饤ȥ桼̾õԤ졢
ꥯȡȥ饯򥭥å夹롣
⤷ݤ줿硢hosts_access() ϥ֤
.PP
hosts_ctl()  request_init()  hosts_access() 򤵤˻Ȥ䤹
󥿡եˤäåѡǤ (ưŪ˥饤
ȤΥ桼̾õˤϡʬʵǽȤϤʤɤ)
饤ȥۥȥɥ쥹饤ȥۥ̾ƥ桼̾
Фϡͭʥǡޤ STRING_UNKNOWN Ѥ뤳
ȡ⤷ݤ줿硢hosts_ctl() ϥ֤
.PP
ѿ \fIallow_severity\fR  \fIdeny_severity\fR ϼޤϵ
ݤꥯȤɤΤ褦˵Ͽ뤫ؼΤǤ롣
ϸƤӽФ¦ˤäƵꤵ٤ΤǤꡢ
ȥơ֥˼롼ˤäƤѹǽ롣
.SH ֤
꤬ syslog ǡ̤𤵤롣
.SH Ϣ
hosts_access(5), ۥȥȥեν
hosts_options(5), ۥȥȥγĥ
.SH ե
/etc/hosts.allow, /etc/hosts.deny, ȥơ֥
.SH Х
hosts_access()  strtok() 饤֥ؿȤäƤ롣
ˤꡢstrtok() 򤢤ƤˤƤ¾ΥɤȴĤ
뤫⤷ʤ
.SH 
.na
.nf
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
\" @(#) hosts_access.3 1.8 96/02/11 17:01:26
.\" -----------------------------------------------------------------------
.\" Translation of hosts_access.8
.\" Japanese Version Copyright (c) 1997 FUKUSHIMA Osamu
.\"         all rights reserved.
.\" Translated: Sat Feb 7  10:00:00 1997 GMT
.\"         by FUKUSHIMA Osamu <fuku@amorph.rim.or.jp>
.\" -----------------------------------------------------------------------