simp / inspec-profile-disa_stig-el7

InSpec Profile for the EL7 DISA STIG
Apache License 2.0
22 stars 46 forks source link

V-72043 Update Assumptions about Filesystems #64

Open Bialogs opened 5 years ago

Bialogs commented 5 years ago

V-72043 makes some assumptions about what filesystems are removable. While the filesystems listed in the default (xfs & ext4) are not often seen in removable media as opposed to FAT, I'm not sure if filtering like this is the best way to go about checking this control. Furthermore, should other filesystems such as sysfs or proc be included?

I'd propose a general approach similar to what is currently happening in V-72075:

  1. Filter mounts based on filesystems mounted
  2. Gather all options for remaining mounts
  3. Determine block devices for remaining mounts
  4. Check if the device is removable
  5. If the device is removable, make sure all mounts corresponding to the device have the correct options