~ubuntu-branches/ubuntu/lucid/bind9/lucid

« back to all changes in this revision

Viewing changes to lib/dns/include/dns/acl.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Internet Software Consortium, Inc, InterNIC, LaMont Jones
  • Date: 2009-07-28 22:03:14 UTC
  • mfrom: (1.6.1 upstream) (10.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090728220314-9wztcj047dxvvhdh
Tags: 1:9.6.1.dfsg.P1-1
[Internet Software Consortium, Inc]

* A specially crafted update packet will cause named to exit. 
  CVE-2009-0696, CERT VU#725188.  Closes: #538975

[InterNIC]

* Update db.root hints file.

[LaMont Jones]

* Move default zone definitions from named.conf to named.conf.default-zones.
   Closes: #492308
* use start-stop-daemon if rndc stop fails.  Closes: #536487
* lwresd: pidfile name was wrong in init script.  Closes: #527137

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2007, 2009  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2002  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: acl.h,v 1.31 2007/12/21 06:46:47 marka Exp $ */
 
18
/* $Id: acl.h,v 1.31.206.2 2009/01/18 23:47:41 tbox Exp $ */
19
19
 
20
20
#ifndef DNS_ACL_H
21
21
#define DNS_ACL_H 1
53
53
        dns_aclelementtype_localhost,
54
54
        dns_aclelementtype_localnets,
55
55
        dns_aclelementtype_any
 
56
#ifdef SUPPORT_GEOIP
 
57
          ,
 
58
        dns_aclelementtype_ipcountry
 
59
#endif
56
60
} dns_aclelemettype_t;
57
61
 
 
62
#ifdef SUPPORT_GEOIP
 
63
typedef char dns_aclipcountry[3];
 
64
#endif
 
65
 
58
66
typedef struct dns_aclipprefix dns_aclipprefix_t;
59
67
 
60
68
struct dns_aclipprefix {
68
76
        dns_name_t              keyname;
69
77
        dns_acl_t               *nestedacl;
70
78
        int                     node_num;
 
79
#ifdef SUPPORT_GEOIP
 
80
        dns_aclipcountry        country;
 
81
#endif
71
82
};
72
83
 
73
84
struct dns_acl {
140
151
 * If pos is set to false, then the nested ACL is to be negated.  This
141
152
 * means reverse the sense of each *positive* element or IP table node,
142
153
 * but leave negatives alone, so as to prevent a double-negative causing
143
 
 * an unexpected postive match in the parent ACL.
 
154
 * an unexpected positive match in the parent ACL.
144
155
 */
145
156
 
146
157
void
154
165
/*%<
155
166
 * Return #ISC_TRUE iff the acl 'a' is considered insecure, that is,
156
167
 * if it contains IP addresses other than those of the local host.
157
 
 * This is intended for applications such as printing warning 
 
168
 * This is intended for applications such as printing warning
158
169
 * messages for suspect ACLs; it is not intended for making access
159
170
 * control decisions.  We make no guarantee that an ACL for which
160
171
 * this function returns #ISC_FALSE is safe.
211
222
 * Like dns_acl_match, but matches against the single ACL element 'e'
212
223
 * rather than a complete ACL, and returns ISC_TRUE iff it matched.
213
224
 *
214
 
 * To determine whether the match was prositive or negative, the 
 
225
 * To determine whether the match was positive or negative, the
215
226
 * caller should examine e->negative.  Since the element 'e' may be
216
227
 * a reference to a named ACL or a nested ACL, a matching element
217
228
 * returned through 'matchelt' is not necessarily 'e' itself.