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.8 by root, Sat Sep 3 23:56:10 2022 UTC vs.
Revision 1.9 by root, Sun Sep 4 00:17:26 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),
207=head1 SEE ALSO 208=head1 SEE ALSO
208 209
209L<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
210some unrelated fucntions that might be useful. 211some unrelated fucntions that might be useful.
211 212
212L<cgroup_namespaces(7)>, L<pid_namespaces(7)>, L<user_namespaces(7)>, 213L<cgroup_namespaces(7)>, L<pid_namespaces(7)>, L<user_namespaces(7)>, L<time_namespaces(7)>,
213L<ip-netns(8)>, L<lsns(8)>, L<switch_root(8)>, L<ioctl_ns(2)>. 214L<ip-netns(8)>, L<lsns(8)>, L<switch_root(8)>, L<ioctl_ns(2)>.
214 215
215=head1 AUTHOR 216=head1 AUTHOR
216 217
217 Marc Lehmann <schmorp@schmorp.de> 218 Marc Lehmann <schmorp@schmorp.de>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines