Skip to content

Commit ac48c07

Browse files
committed
Print error message on empty BPF
This is useful when we're not sure if a filter is installed or not
1 parent 808358b commit ac48c07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/seccomp-tools/dumper.rb

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def dump_by_pid(pid, limit, &block)
182182
begin
183183
bpf = Ptrace.seccomp_get_filter(pid, i)
184184
rescue Errno::ENOENT, Errno::EINVAL
185+
Logger.error('No seccomp filters installed')
185186
break
186187
end
187188
collect << (block.nil? ? bpf : yield(bpf, nil))

0 commit comments

Comments
 (0)