Module: Seccomp::LowLevel
- Defined in:
- lib/seccomp/low_level.rb
Overview
Thin C-compatible API. Methods return negative errno values unless documented otherwise.
Defined Under Namespace
Classes: Context
Class Method Summary collapse
-
.api_get ⇒ Integer
Runtime API level.
-
.api_set(level) ⇒ Integer
Raw return code.
-
.arch_add(context, arch) ⇒ Integer
Raw return code.
-
.arch_exist(context, arch) ⇒ Integer
Raw return code.
-
.arch_native ⇒ Integer
Native architecture token.
-
.arch_remove(context, arch) ⇒ Integer
Raw return code.
-
.arch_resolve_name(name) ⇒ Integer
Architecture token, or zero.
-
.attr_get(context, attribute) ⇒ Array(Integer, Integer)
Raw return code and value.
-
.attr_set(context, attribute, value) ⇒ Integer
Raw return code.
- .closed?(context) ⇒ Boolean
-
.export_bpf(context, fd) ⇒ Integer
Raw return code.
-
.export_bpf_mem(context) ⇒ Array(Integer, String)
Raw return code and BPF.
-
.export_pfc(context, fd) ⇒ Integer
Raw return code.
- .init(action) ⇒ Context
-
.load(context) ⇒ Integer
Raw return code.
- .loaded?(context) ⇒ Boolean
-
.merge(destination, source) ⇒ Integer
Raw return code.
-
.notify_addfd(fd, id, flags, source_fd, newfd, newfd_flags) ⇒ Integer
Installed fd or negative errno.
-
.notify_fd(context) ⇒ Integer
Listener fd or negative errno.
-
.notify_id_valid(fd, id) ⇒ Integer
Raw return code.
-
.notify_receive(fd) ⇒ Array(Integer, Hash)
Raw return code and request.
-
.notify_respond(fd, id, value, error, flags) ⇒ Integer
Raw return code.
-
.precompute(context) ⇒ Integer
Raw return code.
- .release(context) ⇒ nil
-
.reset(context, action) ⇒ Integer
Raw return code.
-
.rule_add_array(context, action, syscall, comparisons) ⇒ Integer
Raw return code.
-
.rule_add_exact_array(context, action, syscall, comparisons) ⇒ Integer
Raw return code.
- .supports?(feature) ⇒ Boolean
-
.syscall_priority(context, syscall, priority) ⇒ Integer
Raw return code.
-
.syscall_resolve_name(name) ⇒ Integer
Syscall number.
-
.syscall_resolve_name_arch(arch, name) ⇒ Integer
Syscall number.
-
.syscall_resolve_name_rewrite(arch, name) ⇒ Integer
Rewritten syscall number.
-
.syscall_resolve_num_arch(arch, number) ⇒ String?
Syscall name.
-
.transaction_commit(context) ⇒ Integer
Raw return code.
-
.transaction_reject(context) ⇒ Integer
Zero.
-
.transaction_start(context) ⇒ Integer
Raw return code.
-
.version ⇒ Array<Integer>
Major, minor, and micro version.
Class Method Details
.api_get ⇒ Integer
Returns runtime API level.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.api_set(level) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.arch_add(context, arch) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.arch_exist(context, arch) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.arch_native ⇒ Integer
Returns native architecture token.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.arch_remove(context, arch) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.arch_resolve_name(name) ⇒ Integer
Returns architecture token, or zero.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.attr_get(context, attribute) ⇒ Array(Integer, Integer)
Returns raw return code and value.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.attr_set(context, attribute, value) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.closed?(context) ⇒ Boolean
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.export_bpf(context, fd) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.export_bpf_mem(context) ⇒ Array(Integer, String)
Returns raw return code and BPF.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.export_pfc(context, fd) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.load(context) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.loaded?(context) ⇒ Boolean
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.merge(destination, source) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.notify_addfd(fd, id, flags, source_fd, newfd, newfd_flags) ⇒ Integer
Returns installed fd or negative errno.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.notify_fd(context) ⇒ Integer
Returns listener fd or negative errno.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.notify_id_valid(fd, id) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.notify_receive(fd) ⇒ Array(Integer, Hash)
Returns raw return code and request.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.notify_respond(fd, id, value, error, flags) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.precompute(context) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.release(context) ⇒ nil
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.reset(context, action) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.rule_add_array(context, action, syscall, comparisons) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.rule_add_exact_array(context, action, syscall, comparisons) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.supports?(feature) ⇒ Boolean
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.syscall_priority(context, syscall, priority) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.syscall_resolve_name(name) ⇒ Integer
Returns syscall number.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.syscall_resolve_name_arch(arch, name) ⇒ Integer
Returns syscall number.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.syscall_resolve_name_rewrite(arch, name) ⇒ Integer
Returns rewritten syscall number.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.syscall_resolve_num_arch(arch, number) ⇒ String?
Returns syscall name.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.transaction_commit(context) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.transaction_reject(context) ⇒ Integer
Returns zero.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.transaction_start(context) ⇒ Integer
Returns raw return code.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|
.version ⇒ Array<Integer>
Returns major, minor, and micro version.
|
|
# File 'lib/seccomp/low_level.rb', line 10
|