There was an error while loading. Please reload this page.
1 parent 91010b3 commit a79c21fCopy full SHA for a79c21f
1 file changed
nsjail.h
@@ -56,7 +56,7 @@ struct pids_t {
56
int pidfd;
57
std::string remote_txt;
58
struct sockaddr_in6 remote_addr;
59
-
+ int pid_syscall_fd;
60
pid_t pasta_pid;
61
pthread_t monitor_tid;
62
};
@@ -68,6 +68,16 @@ struct idmap_t {
68
bool is_newidmap;
69
70
71
+struct pipemap_t {
72
+ int sock_fd;
73
+ int pipe_in;
74
+ int pipe_out;
75
+ pid_t pid;
76
+ bool operator==(const pipemap_t& o) {
77
+ return sock_fd == o.sock_fd && pipe_in == o.pipe_in && pipe_out == o.pipe_out;
78
+ }
79
+};
80
+
81
struct nsj_t {
82
nsjail::NsJailConfig njc;
83
@@ -86,6 +96,7 @@ struct nsj_t {
86
96
std::vector<idmap_t> gids;
87
97
std::vector<int> openfds;
88
98
99
+ std::vector<pipemap_t> pipes;
89
100
int exit_status;
90
101
std::string chroot;
91
102
std::string proc_path;
0 commit comments