Skip to content

Commit a79c21f

Browse files
committed
nsjail.h: restore prematurely removed struct fields
1 parent 91010b3 commit a79c21f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

nsjail.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct pids_t {
5656
int pidfd;
5757
std::string remote_txt;
5858
struct sockaddr_in6 remote_addr;
59-
59+
int pid_syscall_fd;
6060
pid_t pasta_pid;
6161
pthread_t monitor_tid;
6262
};
@@ -68,6 +68,16 @@ struct idmap_t {
6868
bool is_newidmap;
6969
};
7070

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+
7181
struct nsj_t {
7282
nsjail::NsJailConfig njc;
7383

@@ -86,6 +96,7 @@ struct nsj_t {
8696
std::vector<idmap_t> gids;
8797
std::vector<int> openfds;
8898

99+
std::vector<pipemap_t> pipes;
89100
int exit_status;
90101
std::string chroot;
91102
std::string proc_path;

0 commit comments

Comments
 (0)