about summary refs log tree commit diff
path: root/pkgs/build-support/build-sandbox/src/setup.h
blob: fe882dc51ef29358b03993dcb747a94b97d167bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _SETUP_H
#define _SETUP_H

#include <stdbool.h>
#include <sys/types.h>
#include "nix-query.h"

bool write_maps(pid_t parent_pid);
bool bind_mount(const char *path, bool restricted, bool resolve);
bool extra_mount(const char *path, bool is_required);
bool mount_from_path_var(struct query_state *qs, const char *name);
bool setup_sandbox(void);

#endif