Home
last modified time | relevance | path

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

/freebsd/sys/security/mac_ipacl/
H A Dmac_ipacl.c90 #define MAC_RULE_STRING_LEN 1024 macro
128 static char rule_string[MAC_RULE_STRING_LEN];
278 new_string = malloc(MAC_RULE_STRING_LEN, M_IPACL, in sysctl_rules()
287 error = sysctl_handle_string(oidp, string, MAC_RULE_STRING_LEN, req); in sysctl_rules()
/freebsd/sys/security/mac_portacl/
H A Dmac_portacl.c105 #define MAC_RULE_STRING_LEN 1024 macro
134 static char rule_string[MAC_RULE_STRING_LEN];
336 new_string = malloc(MAC_RULE_STRING_LEN, M_PORTACL, in sysctl_rules()
345 error = sysctl_handle_string(oidp, string, MAC_RULE_STRING_LEN, req); in sysctl_rules()
/freebsd/sys/security/mac_do/
H A Dmac_do.c50 #define MAC_RULE_STRING_LEN 1024 macro
169 char string[MAC_RULE_STRING_LEN];
334 _Static_assert(MAC_RULE_STRING_LEN > 0, "MAC_RULE_STRING_LEN <= 0!"); in alloc_rules()
1020 if (len >= MAC_RULE_STRING_LEN) { in parse_rules()
1023 len, MAC_RULE_STRING_LEN - 1); in parse_rules()
1229 char *const buf = malloc(MAC_RULE_STRING_LEN, M_DO, M_WAITOK); in mac_do_sysctl_rules()
1237 strlcpy(buf, rules->string, MAC_RULE_STRING_LEN); in mac_do_sysctl_rules()
1240 error = sysctl_handle_string(oidp, buf, MAC_RULE_STRING_LEN, req); in mac_do_sysctl_rules()
1264 SYSCTL_JAIL_PARAM_STRING(_mac_do, rules, CTLFLAG_RW, MAC_RULE_STRING_LEN,
1366 if (size > MAC_RULE_STRING_LEN) { in mac_do_jail_check()
[all …]