apparmor

package
v1.6.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostSupports

func HostSupports() bool

HostSupports returns true if apparmor is enabled for the host:

  • On Linux returns true if apparmor is enabled, apparmor_parser is present, and if we are not running docker-in-docker.
  • On non-Linux returns false.

This is derived from libcontainer/apparmor.IsEnabled(), with the addition of checks for apparmor_parser to be present and docker-in-docker.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL