Documentation ¶
Index ¶
- Constants
- func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp
- func ParseArchitectureFlag(architectureArg string, config *rspec.LinuxSeccomp) error
- func ParseDefaultAction(action string, config *rspec.LinuxSeccomp) error
- func ParseDefaultActionForce(action string, config *rspec.LinuxSeccomp) error
- func ParseSyscallFlag(args SyscallOpts, config *rspec.LinuxSeccomp) error
- func RemoveAction(arguments string, config *rspec.LinuxSeccomp) error
- func RemoveAllMatchingRules(config *rspec.LinuxSeccomp, seccompAction rspec.LinuxSeccompAction) error
- func RemoveAllSeccompRules(config *rspec.LinuxSeccomp) error
- type SyscallOpts
Constants ¶
const ( CloneNewIPC = syscall.CLONE_NEWIPC CloneNewNet = syscall.CLONE_NEWNET CloneNewNS = syscall.CLONE_NEWNS CloneNewPID = syscall.CLONE_NEWPID CloneNewUser = syscall.CLONE_NEWUSER CloneNewUTS = syscall.CLONE_NEWUTS )
System values passed through on linux
Variables ¶
This section is empty.
Functions ¶
func DefaultProfile ¶
func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp
DefaultProfile defines the whitelist for the default seccomp profile.
func ParseArchitectureFlag ¶
func ParseArchitectureFlag(architectureArg string, config *rspec.LinuxSeccomp) error
ParseArchitectureFlag takes the raw string passed with the --arch flag, parses it and updates the Seccomp config accordingly
func ParseDefaultAction ¶
func ParseDefaultAction(action string, config *rspec.LinuxSeccomp) error
ParseDefaultAction sets the default action of the seccomp configuration and then removes any rules that were already specified with this action
func ParseDefaultActionForce ¶
func ParseDefaultActionForce(action string, config *rspec.LinuxSeccomp) error
ParseDefaultActionForce simply sets the default action of the seccomp configuration
func ParseSyscallFlag ¶
func ParseSyscallFlag(args SyscallOpts, config *rspec.LinuxSeccomp) error
ParseSyscallFlag takes a SyscallOpts struct and the seccomp configuration and sets the new syscall rule accordingly
func RemoveAction ¶
func RemoveAction(arguments string, config *rspec.LinuxSeccomp) error
RemoveAction takes the argument string that was passed with the --remove flag, parses it, and updates the Seccomp config accordingly
func RemoveAllMatchingRules ¶
func RemoveAllMatchingRules(config *rspec.LinuxSeccomp, seccompAction rspec.LinuxSeccompAction) error
RemoveAllMatchingRules will remove any syscall rules that match the specified action
func RemoveAllSeccompRules ¶
func RemoveAllSeccompRules(config *rspec.LinuxSeccomp) error
RemoveAllSeccompRules removes all seccomp syscall rules