summaryrefslogtreecommitdiff
path: root/pkg/apparmor/apparmor.go
blob: 8e17361cb943330964931d48a05466a1cb4dfac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package apparmor

import (
	"errors"

	"github.com/containers/common/pkg/config"
	libpodVersion "github.com/containers/libpod/version"
)

var (
	// DefaultLipodProfilePrefix is used for version-independent presence checks.
	DefaultLipodProfilePrefix = config.DefaultApparmorProfile
	// DefaultLibpodProfile is the name of default libpod AppArmor profile.
	DefaultLibpodProfile = DefaultLipodProfilePrefix + "-" + libpodVersion.Version
	// ErrApparmorUnsupported indicates that AppArmor support is not supported.
	ErrApparmorUnsupported = errors.New("AppArmor is not supported")
	// ErrApparmorRootless indicates that AppArmor support is not supported in rootless mode.
	ErrApparmorRootless = errors.New("AppArmor is not supported in rootless mode")
)