Skip to content

Commit

Permalink
Merge pull request #11827 from evgenyz/fix-nonroot-lp
Browse files Browse the repository at this point in the history
Fix rule mount_option_nodev_nonroot_local_partitions Bash remediation
  • Loading branch information
Mab879 authored Apr 16, 2024
2 parents e4faf96 + 363c557 commit 521db16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MOUNT_OPTION="nodev"
# Create array of local non-root partitions
readarray -t partitions_records < <(findmnt --mtab --raw --evaluate | grep "^/\w" | grep "\s/dev/\w")
readarray -t partitions_records < <(findmnt --mtab --raw --evaluate | grep "^/\w" | grep -v "^/proc" | grep "\s/dev/\w")

# Create array of polyinstantiated directories, in case one of them is found in mtab
readarray -t polyinstantiated_dirs < \
Expand Down

0 comments on commit 521db16

Please sign in to comment.