snaplock

package
v0.0.0-...-117ce26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: GPL-3.0 Imports: 5 Imported by: 38

Documentation

Overview

Package snaplock offers per-snap locking also used by snap-confine. The corresponding C code is in libsnap-confine-private/locking.c

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenLock

func OpenLock(snapName string) (*osutil.FileLock, error)

OpenLock creates and opens a lock file associated with a particular snap.

NOTE: The snap lock is only accessible to root and is only intended to synchronize operations between snapd and snap-confine (and snap-update-ns in some cases). Any process holding the snap lock must not do any interactions with snapd to avoid deadlocks due to locked snap state.

Types

This section is empty.

Directories

Path Synopsis
Package runinhibit contains operations for establishing, removing and querying snap run inhibition lock.
Package runinhibit contains operations for establishing, removing and querying snap run inhibition lock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL