Home
last modified time | relevance | path

Searched refs:netns_fd (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/basic/
Dnamespace-util.c18 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()
Dnamespace-util.h6 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);
Dprocess-util.h161 …, size_t n_except_fds, ForkFlags flags, int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, i…
Dprocess-util.c1411 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/
Dnspawn-network.h19 int move_network_interfaces(int netns_fd, char **ifaces);
Dnspawn-network.c495 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()
Dnspawn.c3632 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/
Dmachine-dbus.c241 _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()