summaryrefslogtreecommitdiffstats
path: root/src/basic/namespace-util.h
blob: 7f7d06687307d6f747a31a21eb173ea25c03df3e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include <sys/types.h>

int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd);
int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd);

int fd_is_network_ns(int fd);

int detach_mount_namespace(void);