File: template_BASH_mount_option_var

package info (click to toggle)
scap-security-guide 0.1.39-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 31,836 kB
  • sloc: xml: 129,736; python: 7,462; sh: 3,796; makefile: 27
file content (17 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# platform = multi_platform_all
# reboot = false

# Include source function library.
. /usr/share/scap-security-guide/remediation_functions

populate %MOUNTPOINT%

include_mount_options_functions

# test "$mount_has_to_exist" = 'yes'
test "%MOUNT_HAS_TO_EXIST%" = 'yes' && assert_mount_point_in_fstab "$%MOUNTPOINT%" \
	|| { echo "Not remediating, because there is no record of $%MOUNTPOINT% in /etc/fstab" >&2; exit 1; }

ensure_mount_option_in_fstab "$%MOUNTPOINT%" "%MOUNTOPTION%"

ensure_partition_is_mounted "$%MOUNTPOINT%"