mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-29 12:52:34 +08:00
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:
@@ -1,3 +1,5 @@
|
||||
// +build apparmor
|
||||
|
||||
package apparmor
|
||||
|
||||
// #cgo LDFLAGS: -lapparmor
|
||||
|
13
apparmor/apparmor_disabled.go
Normal file
13
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
|
||||
}
|
Reference in New Issue
Block a user