HiŁ¬ I have some doubt about the bold code belowŁ¬ at audit-2.5/src/auditd-config.c
static int log_file_parser(struct nv_pair *nv, int line, struct daemon_conf *config) audit_msg(LOG_DEBUG, "log_file_parser called with: %s", nv->value); tdir = strdup(nv->value); if (dir == NULL || strlen(dir) < 4) { // '/var' is shortest dirname "The directory name: %s is too short - line %d", /* verify the directory path exists */ audit_msg(LOG_ERR, "Could not open dir %s (%s)", dir,
when parsing the field "log_file", If the dir is examined nonexistent, why don't create it ? what are the reasons for the design? Thanks.
|