sandbox, ctrs: fixup seccomp for 1.8
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
c70198617f
commit
7d7024999b
10 changed files with 290 additions and 394 deletions
|
@ -156,7 +156,8 @@ type Sandbox struct {
|
|||
portMappings []*hostport.PortMapping
|
||||
stopped bool
|
||||
// ipv4 or ipv6 cache
|
||||
ip string
|
||||
ip string
|
||||
seccompProfilePath string
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -205,6 +206,16 @@ func New(id, namespace, name, kubeName, logDir string, labels, annotations map[s
|
|||
return sb, nil
|
||||
}
|
||||
|
||||
// SetSeccompProfilePath sets the seccomp profile path
|
||||
func (s *Sandbox) SetSeccompProfilePath(pp string) {
|
||||
s.seccompProfilePath = pp
|
||||
}
|
||||
|
||||
// SeccompProfilePath returns the seccomp profile path
|
||||
func (s *Sandbox) SeccompProfilePath() string {
|
||||
return s.seccompProfilePath
|
||||
}
|
||||
|
||||
// AddIP stores the ip in the sandbox
|
||||
func (s *Sandbox) AddIP(ip string) {
|
||||
s.ip = ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue