Skip to content

Commit

Permalink
Update tests in auditd_name_format
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar Aguilar <[email protected]>
  • Loading branch information
Xeicker committed Apr 16, 2024
1 parent cd04eb2 commit 65b9629
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario
bash -x setup.sh

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario
bash -x setup.sh

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario
bash -x setup.sh

{{%- if product in ["rhel7", "ol7"] %}}
config_file="/etc/audisp/audispd.conf"
{{%- else %}}
config_file="/etc/audit/auditd.conf"
{{%- endif %}}

# remove any occurrence
sed -i "s/^.*name_format.*$//" $config_file
echo "name_format = fqd" >> $config_file
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario

bash -x setup.sh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric

{{%- if product in ["rhel7", "ol7"] %}}
config_file="/etc/audisp/audispd.conf"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario
bash -x setup.sh

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# packages = audit
# variables = var_auditd_name_format=hostname|fqd|numeric
# Ensure test system has proper directories/files for test scenario
bash -x setup.sh

{{%- if product in ["rhel7", "ol7"] %}}
config_file="/etc/audisp/audispd.conf"
{{%- else %}}
config_file="/etc/audit/auditd.conf"
{{%- endif %}}

# remove any occurrence
sed -i "s/^.*name_format.*$//" $config_file
echo "name_format = none" >> $config_file

0 comments on commit 65b9629

Please sign in to comment.