Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
user-lock.hh File Reference
#include <filesystem>
#include <memory>
#include <vector>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  nix::UserLock

Functions

std::unique_ptr< UserLock > nix::acquireUserLock (const std::filesystem::path &stateDir, const LocalSettings &localSettings, uid_t nrIds, bool useUserNamespace)
bool nix::useBuildUsers (const LocalSettings &)

Function Documentation

◆ acquireUserLock()

std::unique_ptr< UserLock > nix::acquireUserLock ( const std::filesystem::path & stateDir,
const LocalSettings & localSettings,
uid_t nrIds,
bool useUserNamespace )

Acquire a user lock for a UID range of size nrIds. Note that this may return nullptr if no user is available.