Update to enable cross compile
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
a5364236a7
commit
5d1a3b2ab5
3 changed files with 11 additions and 1 deletions
|
@ -84,7 +84,6 @@ func Init(container *libcontainer.Container, uncleanRootfs, consolePath string,
|
||||||
if err := label.SetProcessLabel(container.Context["process_label"]); err != nil {
|
if err := label.SetProcessLabel(container.Context["process_label"]); err != nil {
|
||||||
return fmt.Errorf("set process label %s", err)
|
return fmt.Errorf("set process label %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := FinalizeNamespace(container); err != nil {
|
if err := FinalizeNamespace(container); err != nil {
|
||||||
return fmt.Errorf("finalize namespace %s", err)
|
return fmt.Errorf("finalize namespace %s", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build linux
|
||||||
|
|
||||||
package restrict
|
package restrict
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
9
libcontainer/security/restrict/unsupported.go
Normal file
9
libcontainer/security/restrict/unsupported.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// +build !linux
|
||||||
|
|
||||||
|
package restrict
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func Restrict(rootfs, empty string) error {
|
||||||
|
return fmt.Errorf("not supported")
|
||||||
|
}
|
Loading…
Reference in a new issue