ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-Clone/Clone.pm
(Generate patch)

Comparing Linux-Clone/Clone.pm (file contents):
Revision 1.7 by root, Sat Sep 3 23:48:17 2022 UTC vs.
Revision 1.10 by root, Tue Sep 6 10:57:01 2022 UTC

30 Linux::Clone::NEWPID 30 Linux::Clone::NEWPID
31 Linux::Clone::NEWUTS 31 Linux::Clone::NEWUTS
32 Linux::Clone::NEWIPC 32 Linux::Clone::NEWIPC
33 Linux::Clone::NEWNET 33 Linux::Clone::NEWNET
34 Linux::Clone::NEWCGROUP 34 Linux::Clone::NEWCGROUP
35 Linux::Clone::NEWTIME
35 36
36Example: unshare the network namespace and prove that by calling ifconfig, 37Example: unshare the network namespace and prove that by calling ifconfig,
37showing only the unconfigured lo interface. 38showing only the unconfigured lo interface.
38 39
39 Linux::Clone::unshare Linux::Clone::NEWNET 40 Linux::Clone::unshare Linux::Clone::NEWNET
160 161
161The following C<$type> constants are available if the kcmp syscall number 162The following C<$type> constants are available if the kcmp syscall number
162was available during compilation: 163was available during compilation:
163 164
164C<Linux::Clone::KCMP_FILE>, C<Linux::Clone::KCMP_VM>, C<Linux::Clone::KCMP_FILES>, 165C<Linux::Clone::KCMP_FILE>, C<Linux::Clone::KCMP_VM>, C<Linux::Clone::KCMP_FILES>,
165C<Linux::Clone::KCMP_FS>, C<Linux::Clone::KCMP_SIGHAND>, C<Linux::Clone::KCMP_IO> and 166C<Linux::Clone::KCMP_FS>, C<Linux::Clone::KCMP_SIGHAND>, C<Linux::Clone::KCMP_IO>,
166C<Linux::Clone::KCMP_SYSVSEM>. 167C<Linux::Clone::KCMP_SYSVSEM> and C<Linux::Clone::KCMP_EPOLL_TFD>.
167 168
168=item Linux::Clone::configure_loopback 169=item Linux::Clone::configure_loopback
169 170
170Configures a working loopback interface (basically, does the equivalent of 171Configures a working loopback interface (basically, does the equivalent of
171"ifconfig lo up" which automatically adds ipv4/ipv6 addresses and routes), 172"ifconfig lo up" which automatically adds ipv4/ipv6 addresses and routes),
172which can be useful to get a network namespace going. 173which can be useful to get a network namespace going.
173 174
174Dies on error and returns nothing. 175Dies on error and returns nothing.
176
177=item C<ioctl> symbols
178
179The following ioctl symbols are also provided by this module (see L<ioctl_ns(8)>).
180
181 Linux::Clone::NS_GET_USERNS
182 Linux::Clone::NS_GET_PARENT
183 Linux::Clone::NS_GET_NSTYPE
184 Linux::Clone::NS_OWNER_UID
175 185
176=back 186=back
177 187
178=cut 188=cut
179 189
1961; 2061;
197 207
198=head1 SEE ALSO 208=head1 SEE ALSO
199 209
200L<IO::AIO> has some related functions, such as C<pidfd_send_signal>, and 210L<IO::AIO> has some related functions, such as C<pidfd_send_signal>, and
201some unrelated fucntions that might be useful. 211some unrelated functions that might be useful.
212
213L<namspaces(7)>, L<cgroup_namespaces(7)>, L<pid_namespaces(7)>,
214L<user_namespaces(7)>, L<time_namespaces(7)>, L<ip-netns(8)>,
215L<switch_root(8)>, L<ioctl_ns(2)>, L<lsns(8)>Q
202 216
203=head1 AUTHOR 217=head1 AUTHOR
204 218
205 Marc Lehmann <schmorp@schmorp.de> 219 Marc Lehmann <schmorp@schmorp.de>
206 http://home.schmorp.de/ 220 http://home.schmorp.de/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines