Searched refs:netns_fd (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/basic/ |
D | namespace-util.c | 18 int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *roo… in namespace_open() argument 42 if (netns_fd) { in namespace_open() 75 if (netns_fd) in namespace_open() 76 *netns_fd = TAKE_FD(netnsfd); in namespace_open() 87 int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd) { in namespace_enter() argument 109 if (netns_fd >= 0) in namespace_enter() 110 if (setns(netns_fd, CLONE_NEWNET) < 0) in namespace_enter()
|
D | namespace-util.h | 6 int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *roo… 7 int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd);
|
D | process-util.h | 161 …, size_t n_except_fds, ForkFlags flags, int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, i…
|
D | process-util.c | 1411 int netns_fd, in namespace_fork() argument 1430 r = namespace_enter(pidns_fd, mntns_fd, netns_fd, userns_fd, root_fd); in namespace_fork()
|
/systemd-251/src/nspawn/ |
D | nspawn-network.h | 19 int move_network_interfaces(int netns_fd, char **ifaces);
|
D | nspawn-network.c | 495 int move_network_interfaces(int netns_fd, char **ifaces) { in move_network_interfaces() argument 518 r = sd_netlink_message_append_u32(m, IFLA_NET_NS_FD, netns_fd); in move_network_interfaces()
|
D | nspawn.c | 3632 int netns_fd) { in outer_child() argument 4001 r = namespace_enter(-1, -1, netns_fd, -1, -1); in outer_child() 4037 netns_fd = safe_close(netns_fd); in outer_child()
|
/systemd-251/src/machine/ |
D | machine-dbus.c | 241 _cleanup_close_ int netns_fd = -1; in bus_machine_method_get_addresses() local 257 r = namespace_open(m->leader, NULL, NULL, &netns_fd, NULL, NULL); in bus_machine_method_get_addresses() 265 -1, -1, netns_fd, -1, -1, &child); in bus_machine_method_get_addresses()
|