Skip to content

Commit

Permalink
make remediation also check for sgids
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtapolasek committed Jan 28, 2021
1 parent 3932c3e commit a82e4e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
- name: "construct list of suid or sgid binaries"
set_fact:
suid_sgid_binaries: "{{ suid_sgid_binaries | union([item.path]) }}"
when: item.mode is match("2.*")
when: item.mode is match("2.*") or item.mode is match("4.*")
loop: '{{ found_files.files }}'

# Inserts/replaces the rule in /etc/audit/rules.d
Expand Down

0 comments on commit a82e4e5

Please sign in to comment.