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

Function lomac_externalize_label

freebsd/security/mac_lomac/mac_lomac.c:698–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698static int
699lomac_externalize_label(struct label *label, char *element_name,
700 struct sbuf *sb, int *claimed)
701{
702 struct mac_lomac *ml;
703
704 if (strcmp(MAC_LOMAC_LABEL_NAME, element_name) != 0)
705 return (0);
706
707 (*claimed)++;
708
709 ml = SLOT(label);
710
711 return (lomac_to_string(sb, ml));
712}
713
714static int
715lomac_parse_element(struct mac_lomac_element *element, char *string)

Callers

nothing calls this directly

Calls 2

strcmpFunction · 0.85
lomac_to_stringFunction · 0.85

Tested by

no test coverage detected