seccomp/context.go
func (c *Context) Load() error {
	filter, err := c.newFilter()
	if err != nil {
		return err
	}
	if err := prctl(prSetNoNewPrivileges, 1, 0, 0, 0); err != nil {
		return err
	}
	prog := newSockFprog(filter)
	return prog.set()
}
func (c *Context) Load() error {
	filter, err := c.newFilter()
	if err != nil {
		return err
	}
	if err := prctl(prSetNoNewPrivileges, 1, 0, 0, 0); err != nil {
		return err
	}
	prog := newSockFprog(filter)
	return prog.set()
}
func ( c * Context ) Load ( ) error { filter , err := c . newFilter ( ) if err != nil { return err } if err := prctl ( prSetNoNewPrivileges , 1 , 0 , 0 , 0 ) ; err != nil { return err } prog := newSockFprog ( filter ) return prog . set ( ) }
// Load will apply the Context to the calling process makeing any secccomp process changes
// apply after the context is loaded.
Load will apply the Context to the calling process makeing any secccomp process changes apply after the context is loaded .