Skip to content

Commit

Permalink
SV-257790
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmetzger committed Oct 13, 2023
1 parent 297d43b commit 31ee48e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controls/SV-257790.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
desc 'The "root" group is a highly privileged group. Furthermore, the group-owner of this file should not have any access privileges anyway.'
desc 'check', 'Verify the group ownership of the "/boot/grub2/grub.cfg" file with the following command:
$ sudo stat -c "%G %n" /boot/grub2/grub.cfg
$ sudo stat -c "%G %n" /boot/grub2/grub.cfg
root /boot/grub2/grub.cfg
Expand All @@ -23,4 +23,8 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']

describe file('/boot/grub2/grub.cfg') do
its('group') { should eq 'root' }
end
end

0 comments on commit 31ee48e

Please sign in to comment.