Home
last modified time | relevance | path

Searched refs:rule_slots (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.sbin/ugidfw/
H A Dugidfw.c99 int error, i, rule_count, rule_slots; in list_rules() local
101 rule_slots = bsde_get_rule_slots(BUFSIZ, errstr); in list_rules()
102 if (rule_slots == -1) { in list_rules()
112 printf("%d slots, %d rules\n", rule_slots, rule_count); in list_rules()
114 for (i = 0; i < rule_slots; i++) { in list_rules()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c87 static int rule_slots = 0; variable
92 SYSCTL_INT(_security_mac_bsdextended, OID_AUTO, rule_slots, CTLFLAG_RD,
93 &rule_slots, 0, "Number of used rule slots\n");
162 if (index < 0 || index > rule_slots + 1) { in sysctl_rule()
189 if (index + 1 > rule_slots) in sysctl_rule()
190 rule_slots = index + 1; in sysctl_rule()
436 for (i = 0; i < rule_slots; i++) { in ugidfw_check()
/freebsd/lib/libugidfw/
H A Dugidfw.c1167 int rule_slots; in bsde_get_rule_slots() local
1169 len = sizeof(rule_slots); in bsde_get_rule_slots()
1170 error = sysctlbyname(MIB ".rule_slots", &rule_slots, &len, NULL, 0); in bsde_get_rule_slots()
1175 if (len != sizeof(rule_slots)) { in bsde_get_rule_slots()
1180 return (rule_slots); in bsde_get_rule_slots()
1297 int error, rule_slots; in bsde_add_rule() local
1310 rule_slots = bsde_get_rule_slots(BUFSIZ, charstr); in bsde_add_rule()
1311 if (rule_slots == -1) { in bsde_add_rule()
1317 name[len] = rule_slots; in bsde_add_rule()
1323 rule_slots, strerror(errno)); in bsde_add_rule()
[all …]