Skip to content

Commit

Permalink
fix: ausearch spec takes audit.log as input instead of stdin (#4186)
Browse files Browse the repository at this point in the history
- add '--input-log' to use the 'log_file' set in auditd.conf
  as input for searching. Without this the ausearch uses stdin
  as input and hence it eats the input from the following bash
  pipe
- fix RHINENG-11883

Signed-off-by: Xiangce Liu <[email protected]>
(cherry picked from commit 35979ee)
  • Loading branch information
xiangce authored and chenlizhong committed Aug 15, 2024
1 parent f1bd4f4 commit c1c538d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class DefaultSpecs(Specs):
auditctl_status = simple_command("/sbin/auditctl -s")
auditd_conf = simple_file("/etc/audit/auditd.conf")
audispd_conf = simple_file("/etc/audisp/audispd.conf")
ausearch_insights_client = simple_command("/usr/sbin/ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts recent -su insights_client", deps=[IsGtOrRhel86], keep_rc=True)
ausearch_insights_client = simple_command("/usr/sbin/ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts recent -su insights_client --input-logs", deps=[IsGtOrRhel86], keep_rc=True)
aws_instance_id_doc = command_with_args('/usr/bin/curl -s -H "X-aws-ec2-metadata-token: %s" http://169.254.169.254/latest/dynamic/instance-identity/document --connect-timeout 5', aws.aws_imdsv2_token, deps=[aws.aws_imdsv2_token])
aws_instance_id_pkcs7 = command_with_args('/usr/bin/curl -s -H "X-aws-ec2-metadata-token: %s" http://169.254.169.254/latest/dynamic/instance-identity/pkcs7 --connect-timeout 5', aws.aws_imdsv2_token, deps=[aws.aws_imdsv2_token])
aws_public_hostnames = command_with_args('/usr/bin/curl -s -H "X-aws-ec2-metadata-token: %s" http://169.254.169.254/latest/meta-data/public-hostname --connect-timeout 5', aws.aws_imdsv2_token, deps=[aws.aws_imdsv2_token])
Expand Down

0 comments on commit c1c538d

Please sign in to comment.