package label

import "github.com/containerd/containerd/pkg/cri/store/label"

Index

Types

type Store

type Store struct {
	sync.Mutex

	Releaser func(string)
	Reserver func(string)
	// contains filtered or unexported fields
}

Store is used to store SELinux process labels

func NewStore

func NewStore() *Store

NewStore creates a new SELinux process label store

func (*Store) Release

func (s *Store) Release(label string)

Release un-reserves the MLS/MCS level component of the specified label, allowing it to be used by another process once labels with the same level have been released.

func (*Store) Reserve

func (s *Store) Reserve(label string) error

Reserve reserves the MLS/MCS level component of the specified label and prevents multiple reserves for the same level

Source Files

label.go

Version
v1.7.27 (latest)
Published
Mar 17, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
17 hours ago

Tools for package owners.