Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#11762 from jan-cerny/accounts_pol…
Browse files Browse the repository at this point in the history
…yinstantiated_var_tmp

Do not require existence of /var/tmp/tmp-inst
  • Loading branch information
Mab879 authored Mar 27, 2024
2 parents 49e0f95 + 8f0e767 commit a3dfc44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# platform = multi_platform_fedora,Red Hat Enterprise Linux 7,Red Hat Enterprise Linux 8,multi_platform_sle
# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_sle
# reboot = false
# strategy = restrict
# complexity = low
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<definition class="compliance" id="accounts_polyinstantiated_var_tmp" version="1">
{{{ oval_metadata("") }}}
<criteria operator="AND" comment="Check Polyinstantiation of /tmp Directories">
<criterion comment="Check that /var/tmp/tmp-inst exists and has mode 000" test_ref="test_var_tmp_tmp_inst" />
<criterion comment="Check that /var/tmp/tmp-inst doesn't exist or it exists and has mode 000" test_ref="test_var_tmp_tmp_inst" />
<criterion comment="Check configuration of /var/tmp in /etc/security/namespace.conf file" test_ref="test_var_tmp_in_namespace_conf" />
</criteria>
</definition>

<unix:file_test comment="Check that /tmp-inst exists and has mode 000" check="all" check_existence="only_one_exists" id="test_var_tmp_tmp_inst" version="1">
<unix:file_test comment="Check that /var/tmp/tmp-inst doesn't exist or it exists and has mode 000" check="all" check_existence="any_exist" id="test_var_tmp_tmp_inst" version="1">
<unix:object object_ref="obj_var_tmp_tmp_inst" />
<unix:state state_ref="state_var_tmp_tmp_inst" />
</unix:file_test>
Expand Down

0 comments on commit a3dfc44

Please sign in to comment.