github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/libcontainer/apparmor/apparmor.go (about)

     1  package apparmor
     2  
     3  import "errors"
     4  
     5  var (
     6  	// IsEnabled returns true if apparmor is enabled for the host.
     7  	IsEnabled = isEnabled
     8  
     9  	// ApplyProfile will apply the profile with the specified name to the process after
    10  	// the next exec. It is only supported on Linux and produces an ErrApparmorNotEnabled
    11  	// on other platforms.
    12  	ApplyProfile = applyProfile
    13  
    14  	// ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.
    15  	ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")
    16  )