Skip to content

Commit

Permalink
Fix in audit_linux when testing for executable files not known by the…
Browse files Browse the repository at this point in the history
… package manager.
  • Loading branch information
mark-unwin committed Jul 28, 2024
1 parent 2a1107f commit abf56b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/audit_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3662,7 +3662,7 @@ if [ "$busybox" = "n" ]; then
package=$(dpkg -S "$file" 2>/dev/null | cut -d: -f1)
;;
'CentOS' | 'RedHat' | 'Fedora' | 'Suse' | 'Amazon' | 'Mariner' | 'AlmaLinux' )
package=$(rpm -qf "$file" 2>/dev/null | grep "is not owned by any package")
package=$(rpm -qf "$file" 2>/dev/null | grep -v "is not owned by any package")
;;
esac
fi
Expand Down

0 comments on commit abf56b5

Please sign in to comment.