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

Function get_flags

freebsd/security/mac_veriexec_parser/mac_veriexec_parser.c:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123static int
124get_flags(const char *entry)
125{
126 int i;
127 int result = 0;
128
129 for (i = 0; flags_table[i].flag_name != NULL; i++)
130 if (strstr(entry, flags_table[i].flag_name) != NULL)
131 result |= flags_table[i].flag;
132
133 return (result);
134}
135
136/*
137 * Parse a single line of manifest looking for a digest and its type.

Callers 1

get_fpFunction · 0.85

Calls 1

strstrFunction · 0.85

Tested by

no test coverage detected