native

package
v0.0.0-...-bfb193a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: LGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const AuditArch = C.AUDIT_ARCH_X86_64

AuditArch contains the architecture value for this architecture

View Source
const X32SyscallBit = uint32(C.__X32_SYSCALL_BIT)

X32SyscallBit contains the bit that syscalls for the 32bit ABI will have set

Variables

This section is empty.

Functions

func CheckGetSeccomp

func CheckGetSeccomp() error

CheckGetSeccomp will check if we have seccomp available

func CheckSetSeccompModeFilter

func CheckSetSeccompModeFilter() error

CheckSetSeccompModeFilter will check if we have seccomp mode filter available

func CheckSetSeccompModeFilterWithSeccomp

func CheckSetSeccompModeFilterWithSeccomp() error

CheckSetSeccompModeFilterWithSeccomp will check if we have the seccomp syscall available

func CheckSetSeccompModeTsync

func CheckSetSeccompModeTsync() error

CheckSetSeccompModeTsync will check that we can set tsync

func InstallSeccomp

func InstallSeccomp(prog *data.SockFprog) error

InstallSeccomp will install seccomp using native methods

func NoNewPrivs

func NoNewPrivs() error

NoNewPrivs will use prctl to stop new privileges using native methods

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL