… | |
… | |
171 | "ifconfig lo up" which automatically adds ipv4/ipv6 addresses and routes), |
171 | "ifconfig lo up" which automatically adds ipv4/ipv6 addresses and routes), |
172 | which can be useful to get a network namespace going. |
172 | which can be useful to get a network namespace going. |
173 | |
173 | |
174 | Dies on error and returns nothing. |
174 | Dies on error and returns nothing. |
175 | |
175 | |
|
|
176 | =item C<ioctl> symbols |
|
|
177 | |
|
|
178 | The following ioctl symbols are also provided by this module (see L<ioctl_ns(8)>). |
|
|
179 | |
|
|
180 | Linux::Clone::NS_GET_USERNS |
|
|
181 | Linux::Clone::NS_GET_PARENT |
|
|
182 | Linux::Clone::NS_GET_NSTYPE |
|
|
183 | Linux::Clone::NS_OWNER_UID |
|
|
184 | |
176 | =back |
185 | =back |
177 | |
186 | |
178 | =cut |
187 | =cut |
179 | |
188 | |
180 | package Linux::Clone; |
189 | package Linux::Clone; |
… | |
… | |
193 | and die "Linux::Clone::configure_looopback: unable to bring up loopback interface: $!\n"; |
202 | and die "Linux::Clone::configure_looopback: unable to bring up loopback interface: $!\n"; |
194 | } |
203 | } |
195 | |
204 | |
196 | 1; |
205 | 1; |
197 | |
206 | |
|
|
207 | =head1 SEE ALSO |
|
|
208 | |
|
|
209 | L<IO::AIO> has some related functions, such as C<pidfd_send_signal>, and |
|
|
210 | some unrelated fucntions that might be useful. |
|
|
211 | |
|
|
212 | L<cgroup_namespaces(7)>, L<pid_namespaces(7)>, L<user_namespaces(7)>, |
|
|
213 | L<ip-netns(8)>, L<lsns(8)>, L<switch_root(8)>, L<ioctl_ns(2)>. |
|
|
214 | |
198 | =head1 AUTHOR |
215 | =head1 AUTHOR |
199 | |
216 | |
200 | Marc Lehmann <schmorp@schmorp.de> |
217 | Marc Lehmann <schmorp@schmorp.de> |
201 | http://home.schmorp.de/ |
218 | http://home.schmorp.de/ |
202 | |
219 | |