public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
b55c71b651363edc639b2d91b767963760159fff blob 715 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: Stefano Brivio <sbrivio@redhat.com>
 * Author: David Gibson <david@gibson.dropbear.id.au>
 */

#ifndef ISOLATION_H
#define ISOLATION_H

#include <stdbool.h>
#include <stddef.h>
#include <unistd.h>

struct initial_fd_snapshot {
       int *arr;
       size_t count;
};

void isolate_initial(void);
void snapshot_initial_fds(struct initial_fd_snapshot *ifds);
void isolate_fds(struct initial_fd_snapshot *ifds, int keep_fd);
void isolate_user(const struct ctx *c, uid_t uid, gid_t gid, bool use_userns,
		  const char *userns);
int isolate_prefork(const struct ctx *c);
void isolate_postfork(const struct ctx *c);

#endif /* ISOLATION_H */
debug log:

solving 8ada988 ...
found 8ada988 in https://archives.passt.top/passt-dev/DM3PR11MB871373A3A2D6F1F07916FE5DDAC82@DM3PR11MB8713.namprd11.prod.outlook.com/ ||
	https://archives.passt.top/passt-dev/20260731060341.302560-1-rlawrence@tamu.edu/ ||
	https://archives.passt.top/passt-dev/20260731132601.422518-1-rlawrence@tamu.edu/
found ec47038 in https://passt.top/passt
preparing index
index prepared:
100644 ec47038843915cb086762f302e32e7b9c61eae42	isolation.h

applying [1/3] https://archives.passt.top/passt-dev/DM3PR11MB871373A3A2D6F1F07916FE5DDAC82@DM3PR11MB8713.namprd11.prod.outlook.com/
diff --git a/isolation.h b/isolation.h
index ec47038..8ada988 100644

Checking patch isolation.h...
Applied patch isolation.h cleanly.

skipping https://archives.passt.top/passt-dev/20260731060341.302560-1-rlawrence@tamu.edu/ for 8ada988
skipping https://archives.passt.top/passt-dev/20260731132601.422518-1-rlawrence@tamu.edu/ for 8ada988
index at:
100644 b55c71b651363edc639b2d91b767963760159fff	isolation.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).