MCPcopy Create free account
hub / github.com/F-Stack/f-stack / toast_rules

Function toast_rules

freebsd/security/mac_portacl/mac_portacl.c:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138static char rule_string[MAC_RULE_STRING_LEN];
139
140static void
141toast_rules(struct rulehead *head)
142{
143 struct rule *rule;
144
145 while ((rule = TAILQ_FIRST(head)) != NULL) {
146 TAILQ_REMOVE(head, rule, r_entries);
147 free(rule, M_PORTACL);
148 }
149}
150
151/*
152 * Note that there is an inherent race condition in the unload of modules

Callers 3

destroyFunction · 0.85
parse_rulesFunction · 0.85
sysctl_rulesFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected