Skip to content

Update mount_option_home_nodev template for OL #13495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,29 @@ references:

platform: mount[home]

{{% if "ol" not in families %}}
template:
name: mount_option
vars:
mountpoint: /home
mountoption: nodev
{{% else %}}
warnings:
- functionality: |-
OVAL looks for partitions whose mount point is a substring of any interactive user's home
directory and validates that nodev option is there. Because of this, there could be false
negatives when several partitions share a base substring. For example, if there is a home
directory in <tt>/var/tmp/user1</tt> and there are partitions mounted in <tt>/var</tt> and
<tt>/var/tmp</tt>. The nodev option is only expected in <tt>/var/tmp</tt>, but OVAL will
check both.<br/>
Bash remediation uses the <tt>df</tt> command to find out the partition where the home
directory is mounted. However, if the directory doesn't exist the remediation won't be
applied.
template:
name: mount_option_home
vars:
mountoption: nodev
{{% endif %}}

fixtext: |-
{{{ fixtext_mount_option("/home", "nodev") }}}
Expand Down
Loading