Module: SeccompTools::Const

Defined in:
lib/seccomp-tools/const.rb

Overview

Define constant values.

Defined Under Namespace

Modules: Audit, BPF, Endian, Syscall

Constant Summary collapse

SYS_ARG =

The argument names of all syscalls.

Syscall.load_args.freeze
SYS_ARG_BITS =

How many bits of each 64-bit argument slot the kernel reads, per syscall. A parameter the kernel declares narrower than 64 bits ignores the slot's upper bits.

Examples:

SYS_ARG_BITS[:socket] #=> [32, 32, 32]
SYS_ARG_BITS[:chmod] #=> [64, 16]
Syscall.load_arg_bits.freeze