Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SV-257792 #23

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions controls/SV-257792.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

If any output is returned, this is a finding.

Check that virtual system calls are disabled by default to persist in kernel updates with the following command:
Check that virtual system calls are disabled by default to persist in kernel updates with the following command:

$ sudo grep vsyscall /etc/default/grub

Expand All @@ -34,8 +34,23 @@
tag stig_id: 'RHEL-09-212035'
tag gtitle: 'SRG-OS-000480-GPOS-00227'
tag fix_id: 'F-61457r925362_fix'
tag satisfies: ['SRG-OS-000480-GPOS-00227', 'SRG-OS-000134-GPOS-00068']
tag satisfies: %w(SRG-OS-000480-GPOS-00227 SRG-OS-000134-GPOS-00068)
tag 'documentable'
tag cci: ['CCI-000366', 'CCI-001084']
tag cci: %w(CCI-000366 CCI-001084)
tag nist: ['CM-6 b', 'SC-3']

if virtualization.system.eql?('docker')
impact 0.0
describe 'Control not applicable within a container' do
skip 'Control not applicable within a container'
end
else
describe parse_config(command('grub2-editenv - list').stdout) do
its('kernelopts') { should match /vsyscall=none/ }
end

describe parse_config_file('/etc/default/grub') do
its('GRUB_CMDLINE_LINUX') { should match /vsyscall=none/ }
end
end
end