You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/apparmor/apparmor.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
limitations under the License.
17
17
*/
18
18
19
-
packageserver
19
+
packageapparmor
20
20
21
21
import (
22
22
"io/ioutil"
@@ -29,12 +29,12 @@ var (
29
29
checkAppArmor sync.Once
30
30
)
31
31
32
-
// hostSupportsAppArmor returns true if apparmor is enabled for the host, if
32
+
// HostSupports returns true if apparmor is enabled for the host, if
33
33
// apparmor_parser is enabled, and if we are not running docker-in-docker.
34
34
//
35
35
// It is a modified version of libcontainer/apparmor.IsEnabled(), which does not
36
36
// check for apparmor_parser to be present, or if we're running docker-in-docker.
37
-
funchostSupportsAppArmor() bool {
37
+
funcHostSupports() bool {
38
38
checkAppArmor.Do(func() {
39
39
// see https://github.com/docker/docker/commit/de191e86321f7d3136ff42ff75826b8107399497
0 commit comments