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

Function ProfilePath

internal/server/seccomp/seccomp.go:631–633  ·  view source on GitHub ↗

ProfilePath returns the seccomp path for the instance.

(c Instance)

Source from the content-addressed store, hash-verified

629
630// ProfilePath returns the seccomp path for the instance.
631func ProfilePath(c Instance) string {
632 return filepath.Join(seccompPath, project.Instance(c.Project().Name, c.Name()))
633}
634
635// InstanceNeedsPolicy returns whether the instance needs a policy or not.
636func InstanceNeedsPolicy(c Instance) bool {

Callers 3

initLXCMethod · 0.92
CreateProfileFunction · 0.85
DeleteProfileFunction · 0.85

Calls 3

InstanceFunction · 0.92
ProjectMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…