Searched refs:rule (Results 1 - 25 of 94) sorted by relevance

1234

/freebsd-10-stable/contrib/tzdata/
H A Dzishrink.awk20 # Return a shortened rule name representing NAME,
43 rule["Arg"] = "A"
44 rule["Brazil"] = "B"
45 rule["Canada"] = "C"
46 rule["Denmark"] = "D"
47 rule["EU"] = "E"
48 rule["France"] = "F"
49 rule["GB-Eire"] = "G"
50 rule["Halifax"] = "H"
51 rule["Ital
[all...]
/freebsd-10-stable/contrib/libarchive/tar/
H A Dsubst.c72 struct subst_rule *rule; local
83 rule = malloc(sizeof(*rule));
84 if (rule == NULL)
86 rule->next = NULL;
87 rule->result = NULL;
90 subst->first_rule = rule;
92 subst->last_rule->next = rule;
93 subst->last_rule = rule;
107 if ((r = regcomp(&rule
216 struct subst_rule *rule; local
314 struct subst_rule *rule; local
[all...]
/freebsd-10-stable/contrib/ofed/libsdp/src/
H A Dmatch.c54 struct use_family_rule *rule,
60 char *target = __sdp_get_family_str( rule->target_family );
61 char *prog = rule->prog_name_expr;
63 /* TODO: handle IPv6 in rule */
64 if ( rule->match_by_addr ) {
65 if ( rule->prefixlen != 32 )
66 sprintf( addr_buf, "%s/%d", inet_ntoa( rule->ipv4 ),
67 rule->prefixlen );
69 sprintf( addr_buf, "%s", inet_ntoa( rule->ipv4 ) );
74 if ( rule
53 get_rule_str( struct use_family_rule *rule, char *buf, size_t len ) argument
87 match_ipv4_addr( struct use_family_rule *rule, const struct sockaddr_in *sin ) argument
97 match_ip_addr_and_port( struct use_family_rule *rule, const struct sockaddr *addr_in, const socklen_t addrlen ) argument
173 struct use_family_rule *rule; local
239 struct use_family_rule *rule; local
[all...]
/freebsd-10-stable/lib/libugidfw/
H A Dugidfw.h38 int bsde_rule_to_string(struct mac_bsdextended_rule *rule, char *buf,
43 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
45 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
49 int bsde_get_rule(int rulenum, struct mac_bsdextended_rule *rule,
52 int bsde_set_rule(int rulenum, struct mac_bsdextended_rule *rule,
54 int bsde_add_rule(int *rulename, struct mac_bsdextended_rule *rule,
H A Dugidfw.c62 bsde_rule_to_string(struct mac_bsdextended_rule *rule, char *buf, size_t buflen) argument
67 char *cur, type[sizeof(rule->mbr_object.mbo_type) * CHAR_BIT + 1];
80 if (rule->mbr_subject.mbs_flags) {
81 if (rule->mbr_subject.mbs_neg == MBS_ALL_FLAGS) {
92 if (!notdone && (rule->mbr_subject.mbs_neg & MBO_UID_DEFINED)) {
99 if (rule->mbr_subject.mbs_flags & MBO_UID_DEFINED) {
100 pwd = getpwuid(rule->mbr_subject.mbs_uid_min);
110 rule->mbr_subject.mbs_uid_min);
116 if (rule->mbr_subject.mbs_uid_min !=
117 rule
1009 bsde_parse_rule(int argc, char *argv[], struct mac_bsdextended_rule *rule, size_t buflen, char *errstr) argument
1079 bsde_parse_rule_string(const char *string, struct mac_bsdextended_rule *rule, size_t buflen, char *errstr) argument
1190 bsde_get_rule(int rulenum, struct mac_bsdextended_rule *rule, size_t errlen, char *errstr) argument
1230 struct mac_bsdextended_rule rule; local
1261 bsde_set_rule(int rulenum, struct mac_bsdextended_rule *rule, size_t buflen, char *errstr) argument
1294 bsde_add_rule(int *rulenum, struct mac_bsdextended_rule *rule, size_t buflen, char *errstr) argument
[all...]
/freebsd-10-stable/sbin/devfs/
H A DMakefile4 SRCS= devfs.c rule.c
/freebsd-10-stable/sys/security/mac_portacl/
H A Dmac_portacl.c120 struct rule { struct
126 TAILQ_ENTRY(rule) r_entries;
135 * Text format for the rule string is that a rule consists of a
142 static TAILQ_HEAD(rulehead, rule) rule_head;
148 struct rule *rule; local
150 while ((rule = TAILQ_FIRST(head)) != NULL) {
151 TAILQ_REMOVE(head, rule, r_entries);
152 free(rule, M_PORTAC
180 parse_rule_element(char *element, struct rule **rule) argument
386 struct rule *rule; local
[all...]
/freebsd-10-stable/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c84 "BSD Extended MAC rule");
95 &rule_slots, 0, "Number of used rule slots\n");
109 * between the new mode (first rule matches) and the old functionality (all
115 "Disable/enable match first rule functionality");
118 ugidfw_rule_valid(struct mac_bsdextended_rule *rule) argument
121 if ((rule->mbr_subject.mbs_flags | MBS_ALL_FLAGS) != MBS_ALL_FLAGS)
123 if ((rule->mbr_subject.mbs_neg | MBS_ALL_FLAGS) != MBS_ALL_FLAGS)
125 if ((rule->mbr_object.mbo_flags | MBO_ALL_FLAGS) != MBO_ALL_FLAGS)
127 if ((rule->mbr_object.mbo_neg | MBO_ALL_FLAGS) != MBO_ALL_FLAGS)
129 if (((rule
229 ugidfw_rulecheck(struct mac_bsdextended_rule *rule, struct ucred *cred, struct vnode *vp, struct vattr *vap, int acc_mode) argument
[all...]
/freebsd-10-stable/sys/kern/
H A Dkern_rctl.c82 * 'rctl_rule_link' connects a rule with every racct it's related to.
83 * For example, rule 'user:X:openfiles:deny=N/process' is linked
173 static int rctl_rule_fully_specified(const struct rctl_rule *rule);
174 static void rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule);
219 * hitting 'rule'.
222 rctl_available_resource(const struct proc *p, const struct rctl_rule *rule) argument
231 resource = rule->rr_resource;
232 switch (rule->rr_per) {
234 available = rule->rr_amount -
238 available = rule
263 rctl_would_exceed(const struct proc *p, const struct rctl_rule *rule, int64_t amount) argument
285 struct rctl_rule *rule; local
334 struct rctl_rule *rule; local
463 struct rctl_rule *rule; local
493 struct rctl_rule *rule; local
532 rctl_rule_matches(const struct rctl_rule *rule, const struct rctl_rule *filter) argument
647 rctl_racct_add_rule(struct racct *racct, struct rctl_rule *rule) argument
665 rctl_racct_add_rule_locked(struct racct *racct, struct rctl_rule *rule) argument
712 rctl_rule_acquire_subject(struct rctl_rule *rule) argument
740 rctl_rule_release_subject(struct rctl_rule *rule) argument
770 struct rctl_rule *rule; local
792 rctl_rule_duplicate(const struct rctl_rule *rule, int flags) argument
817 rctl_rule_acquire(struct rctl_rule *rule) argument
829 struct rctl_rule *rule; local
845 rctl_rule_release(struct rctl_rule *rule) argument
865 rctl_rule_fully_specified(const struct rctl_rule *rule) argument
911 struct rctl_rule *rule; local
1031 rctl_rule_add(struct rctl_rule *rule) argument
1207 rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule) argument
1593 struct rctl_rule *rule; local
1818 struct rctl_rule *rule; local
[all...]
/freebsd-10-stable/sys/netpfil/ipfw/
H A Dip_fw_sockopt.c77 * Find the smallest rule >= key, id.
149 * Add a new rule to the list. Copy the rule into a malloc'ed area, then
150 * possibly create a rule number and add the rule to the list.
158 struct ip_fw *rule; local
166 rule = malloc(l, M_IPFW, M_WAITOK | M_ZERO);
170 free(rule, M_IPFW);
174 bcopy(input_rule, rule, l);
176 rule
219 struct ip_fw *rule; local
255 keep_rule(struct ip_fw *rule, uint8_t cmd, uint8_t set, uint32_t n) argument
281 struct ip_fw *rule; local
437 clear_counters(struct ip_fw *rule, int log_only) argument
459 struct ip_fw *rule; local
520 check_ipfw_struct(struct ip_fw *rule, int size) argument
881 struct ip_fw *rule, *dst; local
946 struct ip_fw *buf, *rule; local
1339 convert_rule_to_7(struct ip_fw *rule) argument
1394 convert_rule_to_8(struct ip_fw *rule) argument
[all...]
/freebsd-10-stable/usr.bin/rctl/
H A Drctl.c99 resolve_ids(char *rule) argument
105 subject = strsep(&rule, ":");
106 textid = strsep(&rule, ":");
108 errx(1, "error in rule specification -- no subject");
109 if (rule != NULL)
110 rest = rule;
146 expand_amount(char *rule) argument
152 copy = strdup(rule);
165 return (rule);
190 humanize_ids(char *rule) argument
244 humanize_amount(char *rule) argument
295 char *rule; local
330 add_rule(char *rule) argument
501 char *rule = NULL; local
[all...]
/freebsd-10-stable/contrib/pf/ftp-proxy/
H A Dfilter.c70 pfr.rule.direction = dir;
103 pfr.rule.rpool.proxy_port[0] = nat_range_low;
104 pfr.rule.rpool.proxy_port[1] = nat_range_high;
136 pfr.rule.rpool.proxy_port[0] = rdr_port;
258 /* Generic for all rule types. */
259 pfr.rule.af = src->sa_family;
260 pfr.rule.proto = IPPROTO_TCP;
261 pfr.rule.src.addr.type = PF_ADDR_ADDRMASK;
262 pfr.rule.dst.addr.type = PF_ADDR_ADDRMASK;
264 memcpy(&pfr.rule
[all...]
/freebsd-10-stable/contrib/pf/tftp-proxy/
H A Dfilter.c74 pfr.rule.direction = dir;
107 pfr.rule.rpool.proxy_port[0] = nat_range_low;
108 pfr.rule.rpool.proxy_port[1] = nat_range_high;
140 pfr.rule.rpool.proxy_port[0] = rdr_port;
267 /* Generic for all rule types. */
268 pfr.rule.af = src->sa_family;
269 pfr.rule.proto = proto;
270 pfr.rule.src.addr.type = PF_ADDR_ADDRMASK;
271 pfr.rule.dst.addr.type = PF_ADDR_ADDRMASK;
273 memcpy(&pfr.rule
[all...]
/freebsd-10-stable/usr.sbin/ugidfw/
H A Dugidfw.c75 struct mac_bsdextended_rule rule; local
78 error = bsde_parse_rule(argc, argv, &rule, BUFSIZ, errstr);
84 error = bsde_add_rule(&rulenum, &rule, BUFSIZ, errstr);
89 if (bsde_rule_to_string(&rule, charstr, BUFSIZ) == -1)
90 warnx("Added rule, but unable to print string.");
99 struct mac_bsdextended_rule rule; local
104 warnx("unable to get rule slots; mac_bsdextended.ko "
116 error = bsde_get_rule(i, &rule, BUFSIZ, errstr);
121 warnx("rule %d: %s", i, errstr);
127 if (bsde_rule_to_string(&rule, charst
138 struct mac_bsdextended_rule rule; local
[all...]
/freebsd-10-stable/sys/netpfil/pf/
H A Dpf_ioctl.c224 /* default rule should never be garbage collected */
295 struct pf_rule *rule; local
309 rule = TAILQ_LAST(ruleset->rules[rs_num].active.ptr,
312 rule = TAILQ_FIRST(ruleset->rules[rs_num].active.ptr);
318 rule = TAILQ_LAST(ruleset->rules[rs_num].inactive.ptr,
321 rule = TAILQ_FIRST(ruleset->rules[rs_num].inactive.ptr);
324 while ((rule != NULL) && (rule->nr != rule_number))
325 rule = TAILQ_NEXT(rule, entrie
368 pf_unlink_rule(struct pf_rulequeue *rulequeue, struct pf_rule *rule) argument
382 pf_free_rule(struct pf_rule *rule) argument
734 struct pf_rule *rule; local
756 struct pf_rule *rule; local
816 pf_hash_rule(MD5_CTX *ctx, struct pf_rule *rule) argument
858 struct pf_rule *rule, **old_array; local
916 struct pf_rule *rule; local
1140 struct pf_rule *rule, *tail; local
1328 struct pf_rule *rule; local
1975 struct pf_rule *rule; local
[all...]
/freebsd-10-stable/contrib/ipfilter/rules/
H A Dipmon.conf22 rule = 12, logtag = 101, direction = in, result = block,
/freebsd-10-stable/contrib/netbsd-tests/ipf/
H A Dt_bpf.sh52 { while read rule; do
53 atf_check -o save:save -x "echo '$rule' | ipftest -Rbr - -i in"
H A Dt_logging.sh47 { while read rule; do
48 echo $rule >>out
50 "echo $rule | ipftest -br - -F $2 -i in -l logout"
H A Dt_filter_exec.sh49 { while read rule; do
50 atf_check -x "echo \"$rule\" | ipftest -F \
101 { while read rule; do
102 atf_check -o save:save -x "echo \"$rule\" | \
/freebsd-10-stable/contrib/byacc/
H A Dgraph.c55 int rule; local
68 rule = -(*sp);
69 fprintf(graph_file, " %s -> ", symbol_pname[rlhs[rule]]);
71 for (sp = ritem + rrhs[rule]; sp < sp1; sp++)
H A Dclosure.c27 int rule; local
36 for (rule = *sp; rule > 0; rule = *++sp)
38 symbol = ritem[rrhs[rule]];
65 int rule; local
93 while ((rule = *rp++) >= 0)
95 SETBIT(rrow, rule);
/freebsd-10-stable/tools/regression/mac/mac_bsdextended/
H A Dtest_ugidfw.c52 * rule<->string routines to confirm they work approximately as desired.
149 struct mac_bsdextended_rule rule; local
171 error = bsde_parse_rule_string(test_strings[i], &rule,
180 error = bsde_rule_to_string(&rule, rulestr, sizeof(rulestr));
182 printf("not ok %d # bsde_rule_to_string: rule for '%s' "
236 * policy for basic state. We want the rule count to be 0 before
/freebsd-10-stable/sys/sys/
H A Drctl.h55 * in the rule are met. There is no global list of rules; instead,
57 * they apply to - for example, a rule of type "user" is linked to the
61 * pointing to the rule.
64 * structures, to subjects. In order to change a rule, add a new rule
137 struct rctl_rule *rctl_rule_duplicate(const struct rctl_rule *rule, int flags);
138 void rctl_rule_acquire(struct rctl_rule *rule);
139 void rctl_rule_release(struct rctl_rule *rule);
140 int rctl_rule_add(struct rctl_rule *rule);
/freebsd-10-stable/tests/sys/mac/bsdextended/
H A Dugidfw_test.c52 * rule<->string routines to confirm they work approximately as desired.
149 struct mac_bsdextended_rule rule; local
172 error = bsde_parse_rule_string(test_strings[i], &rule,
181 error = bsde_rule_to_string(&rule, rulestr, sizeof(rulestr));
183 printf("not ok %d # bsde_rule_to_string: rule for '%s' "
232 * policy for basic state. We want the rule count to be 0 before
/freebsd-10-stable/usr.sbin/ppp/
H A Dfilter.h47 * There's a struct filterent for each possible filter rule. The
75 /* f_action values [0..MAXFILTERS) specify the next filter rule, others are: */
81 struct filterent rule[MAXFILTERS]; /* incoming packet filter */ member in struct:filter

Completed in 106 milliseconds

1234