Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Update to enable cross compile
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
  • Loading branch information
crosbymichael committed May 1, 2014
1 parent 5a6b042 commit dcc4061
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion nsinit/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func Init(container *libcontainer.Container, uncleanRootfs, consolePath string,
if err := label.SetProcessLabel(container.Context["process_label"]); err != nil {
return fmt.Errorf("set process label %s", err)
}

if err := FinalizeNamespace(container); err != nil {
return fmt.Errorf("finalize namespace %s", err)
}
Expand Down
2 changes: 2 additions & 0 deletions security/restrict/restrict.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package restrict

import (
Expand Down
9 changes: 9 additions & 0 deletions security/restrict/unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build !linux

package restrict

import "fmt"

func Restrict(rootfs, empty string) error {
return fmt.Errorf("not supported")
}

0 comments on commit dcc4061

Please sign in to comment.