mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Check for apparmor enabled on host to populate profile
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
@@ -17,7 +17,7 @@ func IsEnabled() bool {
|
||||
}
|
||||
|
||||
func ApplyProfile(pid int, name string) error {
|
||||
if !IsEnabled() || name == "" {
|
||||
if name == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user