pkg/apparmor: clarify Godoc
Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
This commit is contained in:
@@ -29,8 +29,8 @@ var (
|
||||
// hostSupports returns true if apparmor is enabled for the host, if
|
||||
// apparmor_parser is enabled, and if we are not running docker-in-docker.
|
||||
//
|
||||
// It is a modified version of libcontainer/apparmor.IsEnabled(), which does not
|
||||
// check for apparmor_parser to be present, or if we're running docker-in-docker.
|
||||
// This is derived from libcontainer/apparmor.IsEnabled(), with the addition
|
||||
// of checks for apparmor_parser to be present and docker-in-docker.
|
||||
func hostSupports() bool {
|
||||
checkAppArmor.Do(func() {
|
||||
// see https://github.com/opencontainers/runc/blob/0d49470392206f40eaab3b2190a57fe7bb3df458/libcontainer/apparmor/apparmor_linux.go
|
||||
|
Reference in New Issue
Block a user