Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func GenWritableFileProfile(emit func(f string, args ...interface{}), path string, assumedPrefixDepth int) + func GenWritableMimicProfile(emit func(f string, args ...interface{}), path string, assumedPrefixDepth int) + func GenWritableProfile(emit func(f string, args ...interface{}), path string, assumedPrefixDepth int) + func MockIsHomeUsingNFS(new func() (bool, error)) (restore func()) + func ValidateNoAppArmorRegexp(s string) error + type Backend struct + func (b *Backend) Initialize(opts *interfaces.SecurityBackendOptions) error + func (b *Backend) Name() interfaces.SecuritySystem + func (b *Backend) NewSpecification() interfaces.Specification + func (b *Backend) Remove(snapName string) error + func (b *Backend) RemoveLate(snapName string, rev snap.Revision, typ snap.Type) error + func (b *Backend) SandboxFeatures() []string + func (b *Backend) Setup(snapInfo *snap.Info, opts interfaces.ConfinementOptions, ...) error + func (b *Backend) SetupMany(snaps []*snap.Info, ...) []error + type Specification struct + func (spec *Specification) AddConnectedPlug(iface interfaces.Interface, plug *interfaces.ConnectedPlug, ...) error + func (spec *Specification) AddConnectedSlot(iface interfaces.Interface, plug *interfaces.ConnectedPlug, ...) error + func (spec *Specification) AddDeduplicatedSnippet(snippet string) + func (spec *Specification) AddExtraLayouts(si *snap.Info, layouts []snap.Layout) + func (spec *Specification) AddLayout(snapInfo *snap.Info) + func (spec *Specification) AddOvername(si *snap.Info) + func (spec *Specification) AddParametricSnippet(templateFragment []string, value string) + func (spec *Specification) AddPermanentPlug(iface interfaces.Interface, plug *snap.PlugInfo) error + func (spec *Specification) AddPermanentSlot(iface interfaces.Interface, slot *snap.SlotInfo) error + func (spec *Specification) AddSnippet(snippet string) + func (spec *Specification) AddUpdateNS(snippet string) + func (spec *Specification) AddUpdateNSf(f string, args ...interface{}) + func (spec *Specification) SecurityTags() []string + func (spec *Specification) SetSuppressHomeIx() + func (spec *Specification) SetSuppressPtraceTrace() + func (spec *Specification) SetSuppressSysModuleCapability() + func (spec *Specification) SetUsesPtraceTrace() + func (spec *Specification) SetUsesSysModuleCapability() + func (spec *Specification) SnippetForTag(tag string) string + func (spec *Specification) Snippets() map[string][]string + func (spec *Specification) SuppressHomeIx() bool + func (spec *Specification) SuppressPtraceTrace() bool + func (spec *Specification) SuppressSysModuleCapability() bool + func (spec *Specification) UpdateNS() []string + func (spec *Specification) UpdateNSIndexOf(snippet string) (idx int, ok bool) + func (spec *Specification) UsesPtraceTrace() bool + func (spec *Specification) UsesSysModuleCapability() bool