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:05:03 -08:00
parent f0f833c6d7
commit c89fa6645e
5 changed files with 19 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
// +build apparmor
package apparmor
// #cgo LDFLAGS: -lapparmor
@@ -0,0 +1,13 @@
// +build !apparmor
package apparmor
import ()
func IsEnabled() bool {
return false
}
func ApplyProfile(pid int, name string) error {
return nil
}