Skip to content

Commit

Permalink
Addressing issue simp#129
Browse files Browse the repository at this point in the history
Removed 'grub_superuser' as an input. The STIG guidance is clear that
this is the only allowable account so there is no reason to allow it
to be tailored.

Updated V-71961 to remove reference to the 'grub_superuser' input and
hardcode "grub_superuser = 'root'".

Signed-off-by: Lesley Kimmel <lesley.j.kimmel@users.noreply.github.com>
  • Loading branch information
Lesley Kimmel committed Mar 25, 2020
1 parent 963595d commit 43dbe1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions controls/V-71961.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# encoding: utf-8
#
grub_superuser = input(
'grub_superuser',
description: 'superusers for grub boot ( array )',
value: ['root']
)
grub_user_boot_files = input(
'grub_user_boot_files',
description: 'grub boot config files',
Expand Down Expand Up @@ -76,6 +71,7 @@
tag "fix_id": "F-78313r2_fix"

grub_main_content = file(grub_main_cfg).content
grub_superuser = 'root'

# Check if any additional superusers are set
pattern = %r{\s*set superusers=\"(\w+)\"}i
Expand Down
5 changes: 0 additions & 5 deletions inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,6 @@ inputs:
type: String
value: '/boot/grub2/grub.cfg'

- name: grub_superuser
description: superusers for grub boot
type: Array
value: ['root']

- name: grub_user_boot_files
description: Grub boot config files
type: Array
Expand Down

0 comments on commit 43dbe1f

Please sign in to comment.