Lines Matching refs:str
103 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument
110 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata()
186 char* str = nullptr; in logPrint() local
188 int rc = vasprintf(&str, fmt, args); in logPrint()
198 while ((cp = strchr(str, '\n'))) { in logPrint()
202 while ((cp = strstr(str, " "))) { in logPrint()
209 char* pidptr = strstr(str, pid_str); in logPrint()
224 bool info = strstr(str, " permissive=1") || strstr(str, " policy loaded "); in logPrint()
243 char* avcr = strstr(str, avc); in logPrint()
250 last_str = strdup(str); in logPrint()
279 last_str = strdup(str); in logPrint()
283 auditParse(str, uid, &denial_metadata); in logPrint()
287 iov[1].iov_base = str; in logPrint()
288 iov[1].iov_len = strlen(str); in logPrint()
299 free(str); in logPrint()
306 char* timeptr = strstr(str, audit_str); in logPrint()
329 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint()
330 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len)) in logPrint()
331 auditParse(str, uid, &denial_metadata); in logPrint()
347 memcpy(event->data, str, str_len - denial_metadata.length()); in logPrint()
363 const char* comm = strstr(str, comm_str); in logPrint()
364 const char* estr = str + strlen(str); in logPrint()
389 size_t prefix_len = estr - str; in logPrint()
402 strncpy(newstr + 1 + str_len, str, prefix_len); in logPrint()
418 free(str); in logPrint()