Skip to content

Commit

Permalink
Add buildflags to allow crosscompilation for apparmor
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: creack)
  • Loading branch information
creack committed Mar 6, 2014
1 parent d5957ad commit a01ed80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apparmor/apparmor.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build apparmor

package apparmor

// #cgo LDFLAGS: -lapparmor
Expand Down
13 changes: 13 additions & 0 deletions apparmor/apparmor_disabled.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// +build !apparmor

package apparmor

import ()

func IsEnabled() bool {
return false
}

func ApplyProfile(pid int, name string) error {
return nil
}

0 comments on commit a01ed80

Please sign in to comment.