File: apparmor.go

package info (click to toggle)
golang-github-containers-common 0.33.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 856 kB
  • sloc: makefile: 118; sh: 25
file content (22 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package apparmor

import (
	"errors"

	"github.com/containers/common/version"
)

const (
	// ProfilePrefix is used for version-independent presence checks.
	ProfilePrefix = "containers-default-"

	// Profile default name
	Profile = ProfilePrefix + version.Version
)

var (
	// 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")
)