Skip to content

Commit 1f31d79

Browse files
authored
audispd-pconfig.c: don't check unnecessary write permissions (#433)
1 parent 156813c commit 1f31d79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

audisp/audispd-pconfig.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ static int sanity_check(plugin_conf_t *config, const char *file)
506506
config->path);
507507
return 1;
508508
}
509-
if ((buf.st_mode & (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP)) !=
510-
(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP)) {
511-
audit_msg(LOG_ERR, "%s permissions should be 0750",
509+
if ((buf.st_mode & (S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP)) !=
510+
(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP)) {
511+
audit_msg(LOG_ERR, "%s permissions should be at least 0550",
512512
config->path);
513513
return 1;
514514
}

0 commit comments

Comments
 (0)