Versions in this module Expand all Collapse all v0 v0.1.0 Sep 6, 2018 Changes in this version + func GetLibraryVersion() (major, minor, micro uint) — linux/amd64 + type ScmpAction uint — linux/amd64 + const ActAllow + const ActErrno + const ActInvalid + const ActKill + const ActTrace + const ActTrap + func (a ScmpAction) GetReturnCode() int16 + func (a ScmpAction) SetReturnCode(code int16) ScmpAction + func (a ScmpAction) String() string + type ScmpArch uint — linux/amd64 + const ArchAMD64 + const ArchARM + const ArchARM64 + const ArchInvalid + const ArchMIPS + const ArchMIPS64 + const ArchMIPS64N32 + const ArchMIPSEL + const ArchMIPSEL64 + const ArchMIPSEL64N32 + const ArchNative + const ArchPPC + const ArchPPC64 + const ArchPPC64LE + const ArchS390 + const ArchS390X + const ArchX32 + const ArchX86 + func GetArchFromString(arch string) (ScmpArch, error) + func GetNativeArch() (ScmpArch, error) + func (a ScmpArch) String() string + type ScmpCompareOp uint — linux/amd64 + const CompareEqual + const CompareGreater + const CompareGreaterEqual + const CompareInvalid + const CompareLess + const CompareLessOrEqual + const CompareMaskedEqual + const CompareNotEqual + func (a ScmpCompareOp) String() string + type ScmpCondition struct — linux/amd64 + Argument uint + Op ScmpCompareOp + Operand1 uint64 + Operand2 uint64 + func MakeCondition(arg uint, comparison ScmpCompareOp, values ...uint64) (ScmpCondition, error) + type ScmpFilter struct — linux/amd64 + func NewFilter(defaultAction ScmpAction) (*ScmpFilter, error) + func (f *ScmpFilter) AddArch(arch ScmpArch) error + func (f *ScmpFilter) AddRule(call ScmpSyscall, action ScmpAction) error + func (f *ScmpFilter) AddRuleConditional(call ScmpSyscall, action ScmpAction, conds []ScmpCondition) error + func (f *ScmpFilter) AddRuleConditionalExact(call ScmpSyscall, action ScmpAction, conds []ScmpCondition) error + func (f *ScmpFilter) AddRuleExact(call ScmpSyscall, action ScmpAction) error + func (f *ScmpFilter) ExportBPF(file *os.File) error + func (f *ScmpFilter) ExportPFC(file *os.File) error + func (f *ScmpFilter) GetBadArchAction() (ScmpAction, error) + func (f *ScmpFilter) GetDefaultAction() (ScmpAction, error) + func (f *ScmpFilter) GetNoNewPrivsBit() (bool, error) + func (f *ScmpFilter) IsArchPresent(arch ScmpArch) (bool, error) + func (f *ScmpFilter) IsValid() bool + func (f *ScmpFilter) Load() error + func (f *ScmpFilter) Merge(src *ScmpFilter) error + func (f *ScmpFilter) Release() + func (f *ScmpFilter) RemoveArch(arch ScmpArch) error + func (f *ScmpFilter) Reset(defaultAction ScmpAction) error + func (f *ScmpFilter) SetBadArchAction(action ScmpAction) error + func (f *ScmpFilter) SetNoNewPrivsBit(state bool) error + func (f *ScmpFilter) SetSyscallPriority(call ScmpSyscall, priority uint8) error + type ScmpSyscall int32 — linux/amd64 + func GetSyscallFromName(name string) (ScmpSyscall, error) + func GetSyscallFromNameByArch(name string, arch ScmpArch) (ScmpSyscall, error) + func (s ScmpSyscall) GetName() (string, error) + func (s ScmpSyscall) GetNameByArch(arch ScmpArch) (string, error) + type VersionError struct — linux/amd64 + func (e VersionError) Error() string