Add buildflags to allow crosscompilation for apparmor

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
This commit is contained in:
Guillaume J. Charmes 2014-03-06 12:04:51 -08:00
parent 0ecd2aa284
commit 729080d46a
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,5 @@
// +build apparmor
package apparmor package apparmor
// #cgo LDFLAGS: -lapparmor // #cgo LDFLAGS: -lapparmor

View file

@ -0,0 +1,13 @@
// +build !apparmor
package apparmor
import ()
func IsEnabled() bool {
return false
}
func ApplyProfile(pid int, name string) error {
return nil
}