MCPcopy
hub / github.com/lxc/incus / ForkproxyProfileName

Function ForkproxyProfileName

internal/server/apparmor/instance_forkproxy.go:82–86  ·  view source on GitHub ↗

ForkproxyProfileName returns the AppArmor profile name.

(inst instance, dev device)

Source from the content-addressed store, hash-verified

80
81// ForkproxyProfileName returns the AppArmor profile name.
82func ForkproxyProfileName(inst instance, dev device) string {
83 path := internalUtil.VarPath("")
84 name := fmt.Sprintf("%s_%s_<%s>", dev.Name(), project.Instance(inst.Project().Name, inst.Name()), path)
85 return profileName("forkproxy", name)
86}
87
88// forkproxyProfileFilename returns the name of the on-disk profile name.
89func forkproxyProfileFilename(inst instance, dev device) string {

Callers 4

StartMethod · 0.92
forkproxyProfileFunction · 0.85
ForkproxyUnloadFunction · 0.85
ForkproxyDeleteFunction · 0.85

Calls 4

InstanceFunction · 0.92
profileNameFunction · 0.85
NameMethod · 0.65
ProjectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…