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:
parent
0ecd2aa284
commit
729080d46a
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
// +build apparmor
|
||||
|
||||
package apparmor
|
||||
|
||||
// #cgo LDFLAGS: -lapparmor
|
||||
|
|
13
libcontainer/apparmor/apparmor_disabled.go
Normal file
13
libcontainer/apparmor/apparmor_disabled.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
// +build !apparmor
|
||||
|
||||
package apparmor
|
||||
|
||||
import ()
|
||||
|
||||
func IsEnabled() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func ApplyProfile(pid int, name string) error {
|
||||
return nil
|
||||
}
|
Loading…
Reference in a new issue