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

Function ForkproxyUnload

internal/server/apparmor/instance_forkproxy.go:135–137  ·  view source on GitHub ↗

ForkproxyUnload ensures that the instances's policy namespace is unloaded to free kernel memory. This does not delete the policy from disk or cache.

(sysOS *sys.OS, inst instance, dev device)

Source from the content-addressed store, hash-verified

133// ForkproxyUnload ensures that the instances's policy namespace is unloaded to free kernel memory.
134// This does not delete the policy from disk or cache.
135func ForkproxyUnload(sysOS *sys.OS, inst instance, dev device) error {
136 return unloadProfile(sysOS, ForkproxyProfileName(inst, dev), forkproxyProfileFilename(inst, dev))
137}
138
139// ForkproxyDelete removes the policy from cache/disk.
140func ForkproxyDelete(sysOS *sys.OS, inst instance, dev device) error {

Callers 1

StopMethod · 0.92

Calls 3

unloadProfileFunction · 0.85
ForkproxyProfileNameFunction · 0.85
forkproxyProfileFilenameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…