Skip to content

Commit 1708a5a

Browse files
plexikstevegrubb
authored andcommitted
fix exe permission check not properly allowing 0550
1 parent 35d7525 commit 1708a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auditd-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static int check_exe_name(const char *val, int line)
837837
(buf.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) !=
838838
(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) &&
839839
(buf.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) !=
840-
(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)) {
840+
(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP)) {
841841
audit_msg(LOG_ERR,
842842
"%s permissions should be 0750, 0755, 0555 or 0550 - line %d",
843843
val, line);

0 commit comments

Comments
 (0)