Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
chroot.hh
Go to the documentation of this file.
1#pragma once
3
4#include <filesystem>
5#include <map>
6#include <memory>
7#include <functional>
8
9namespace nix {
10
11class AutoDelete;
12struct UserLock;
13
18{
20 std::filesystem::path chrootParentDir;
21
24
27
30
32 std::string storeDir;
33
35 std::function<void(const std::filesystem::path &)> chownToBuilder;
36};
37
48std::pair<std::filesystem::path, AutoDelete> setupBuildChroot(const BuildChrootParams & params);
49
50} // namespace nix
Definition file-system.hh:375
Definition chroot.hh:18
UserLock * buildUser
Definition chroot.hh:29
bool useUidRange
Definition chroot.hh:23
bool isSandboxed
Definition chroot.hh:26
std::filesystem::path chrootParentDir
Definition chroot.hh:20
std::function< void(const std::filesystem::path &)> chownToBuilder
Definition chroot.hh:35
std::string storeDir
Definition chroot.hh:32
Definition user-lock.hh:14