github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/pkg/apparmor/apparmor.go (about)

     1  package apparmor
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/containers/common/pkg/config"
     7  	libpodVersion "github.com/containers/libpod/version"
     8  )
     9  
    10  var (
    11  	// DefaultLipodProfilePrefix is used for version-independent presence checks.
    12  	DefaultLipodProfilePrefix = config.DefaultApparmorProfile
    13  	// DefaultLibpodProfile is the name of default libpod AppArmor profile.
    14  	DefaultLibpodProfile = DefaultLipodProfilePrefix + "-" + libpodVersion.Version
    15  	// ErrApparmorUnsupported indicates that AppArmor support is not supported.
    16  	ErrApparmorUnsupported = errors.New("AppArmor is not supported")
    17  	// ErrApparmorRootless indicates that AppArmor support is not supported in rootless mode.
    18  	ErrApparmorRootless = errors.New("AppArmor is not supported in rootless mode")
    19  )