Searched refs:netns_fd (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dutil.h171 int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd);
172 int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd);
H A Dutil.c649 int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd) { argument
673 if (netns_fd) {
706 if (netns_fd)
707 *netns_fd = netnsfd;
720 int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd) { argument
745 if (netns_fd >= 0)
746 if (setns(netns_fd, CLONE_NEWNET) < 0)
/systemd/src/machine/
H A Dmachine-dbus.c244 _cleanup_close_ int netns_fd = -1; local
261 r = namespace_open(m->leader, NULL, NULL, &netns_fd, NULL, NULL);
279 r = namespace_enter(-1, -1, netns_fd, -1, -1);

Completed in 16 milliseconds