MCPcopy
hub / github.com/opencontainers/runc / ApplyProfile

Function ApplyProfile

libcontainer/apparmor/apparmor.go:16–18  ·  view source on GitHub ↗

ApplyProfile will apply the profile with the specified name to the process after the next exec. It is only supported on Linux and produces an [ErrApparmorNotEnabled] on other platforms.

(name string)

Source from the content-addressed store, hash-verified

14// after the next exec. It is only supported on Linux and produces an
15// [ErrApparmorNotEnabled] on other platforms.
16func ApplyProfile(name string) error {
17 return applyProfile(name)
18}
19
20// ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.
21var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")

Callers 2

InitMethod · 0.92
InitMethod · 0.92

Calls 1

applyProfileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…