]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/namespace-util.h
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount
[thirdparty/systemd.git] / src / basic / namespace-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <sys/types.h>
5
6 int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd);
7 int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd);
8
9 int fd_is_network_ns(int fd);
10
11 int detach_mount_namespace(void);