Skip to content
Merged
Changes from 2 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
10 changes: 10 additions & 0 deletions controls/sysctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,13 @@
its(:value) { should eq 1 }
end
end

control 'sysctl-35' do
impact 1.0
title 'Restrict ptrace attach to privileged users'
desc 'Ensure kernel.yama.ptrace_scope is set to at least 2 so unprivileged users cannot attach ptrace to arbitrary processes.'
only_if { !container_execution }
describe kernel_parameter('kernel.yama.ptrace_scope') do
its(:value) { should eq(2).or eq(3).or eq(nil) } # include nil because SuSE does not have this parameter
Comment thread
schurzi marked this conversation as resolved.
Outdated
end
end
Loading