Documentation ¶
Index ¶
- func Init()
- func OpenCwd(pid uint32) (*os.File, error)
- func OpenNamespace(pid uint32, nstype string) (*os.File, error)
- func OpenRoot(pid uint32) (*os.File, error)
- func RegisterModule(name string, f RunFunc) bool
- func Run(root, cwd, mntns, netns, pidns *os.File, i interface{}) ([]byte, error)
- type ModuleXXX
- type RunFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init()
Init checks if the process has re-executed itself and must run a registered module. Init() needs to be called explicitely from main() to ensure it is called after all other init() functions.
func OpenCwd ¶
OpenCwd opens a /proc/pid/cwd file. It is done separately to Run() so that the caller can call libseccomp.NotifIDValid() in between.
func OpenNamespace ¶
OpenNamespaces opens a namespace file. It is done separately to Run() so that the caller can call libseccomp.NotifIDValid() in between.
func OpenRoot ¶
OpenRoot opens a /proc/pid/root file. It is done separately to Run() so that the caller can call libseccomp.NotifIDValid() in between.
func RegisterModule ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.