perl-Linux-Clone-1.2-alt2.1.i586.rpm


Advertisement

Description

perl-Linux-Clone - an interface to the linux clone(2) and unshare(2) syscalls

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports i586
Package filename perl-Linux-Clone-1.2-alt2.1.i586.rpm
Package name perl-Linux-Clone
Package version 1.2
Package release alt2.1
Package architecture i586
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 29.91 KB
Installed size 29.91 KB
This module exposes the linux clone(2), unshare(2) and related syscalls to
Perl.
=over 4
=item $retval = unshare $flags
The following CLONE_ flag values (without CLONE_ prefix) are supported for
unshare, if found, in this release. See the documentation for unshare(2)
for more info on what they do:
Linux::Clone::FILES
Linux::Clone::FS
Linux::Clone::NEWNS   (in unshare, implies FS)
Linux::Clone::VM      (in unshare, implies SIGHAND)
Linux::Clone::THREAD  (in unshare, implies VM, SIGHAND)
Linux::Clone::SIGHAND
Linux::Clone::SYSVSEM
Linux::Clone::NEWUSER (in unshare, implies CLONE_THREAD)
Linux::Clone::NEWPID
Linux::Clone::NEWUTS
Linux::Clone::NEWIPC
Linux::Clone::NEWNET
Linux::Clone::NEWCGROUP
Example: unshare the network namespace and prove that by calling ifconfig,
showing only an unconfigured lo interface.
Linux::Clone::unshare Linux::Clone::NEWNET
and "unshare: $!";
system "ifconfig -a";
Example: unshare the network namespace, initialise the loopback interface,
create a veth interface pair, put one interface into the parent processes
namespace (use ifconfig -a from another shell), configure the other
interface with 192.168.99.2 -> 192.168.99.1 and start a shell.
use Linux::Clone;
Linux::Clone::unshare Linux::Clone::NEWNET
and "unshare: $!";
my $ppid = getppid;
system "
ip link set lo up
ip route add 127.0.0.0/8 dev lo
ip link add name veth_master type veth peer name veth_slave
ip link set veth_master netns $ppid
ip link set veth_slave up
ip addr add 192.168.99.2/32 dev veth_slave
ip route add 192.168.99.1/32 dev veth_slave
";
print <<EOF;
say hi to your new network namespace, use exit to return.
try this from another shell to get networking up:
ip link set veth_master up
i...

Alternatives

Package Version Architecture Repository
perl-Linux-Clone-1.2-alt2.1.x86_64.rpm 1.2 x86_64 Autoimports
perl-Linux-Clone - - -

Requires

Name Value
/usr/lib/perl5 -
libc.so.6(GLIBC_2.0) -
libc.so.6(GLIBC_2.1) -
libc.so.6(GLIBC_2.1.3) -
libc.so.6(GLIBC_2.14) -
libc.so.6(GLIBC_2.4) -
libperl-5.28.so -
libpthread.so.0(GLIBC_2.0) -
perl(XSLoader.pm) -
rpmlib(PayloadIsLzma) -
rpmlib(SetVersions) -
rtld(GNU_HASH) -

Provides

Name Value
perl(Linux/Clone.pm) = 1.200
perl-Linux-Clone = 1.2-alt2.1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Linux-Clone-1.2-alt2.1.i586.rpm
Source Package perl-Linux-Clone-1.2-alt2.1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus i586 autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Linux-Clone rpm package:
    # sudo apt-get install perl-Linux-Clone

Files

Path
/usr/lib/perl5/Linux/Clone.pm
/usr/lib/perl5/auto/Linux/
/usr/lib/perl5/auto/Linux/Clone/Clone.so
/usr/share/doc/perl-Linux-Clone-1.2/COPYING
/usr/share/doc/perl-Linux-Clone-1.2/Changes
/usr/share/doc/perl-Linux-Clone-1.2/README

See Also

Package Description
perl-Linux-DVB-DVBT-2.20-alt3.1.i586.rpm Perl extension for DVB terrestrial recording, epg, and scanning
perl-Linux-DVB-DVBT-Advert-0.04-alt4.1.i586.rpm Advert (commercials) detection and removal
perl-Linux-DVB-DVBT-Advert-scripts-0.04-alt4.1.i586.rpm Linux-DVB-DVBT-Advert scripts
perl-Linux-DVB-DVBT-TS-0.08-alt4.1.i586.rpm Transport Stream utilities
perl-Linux-DVB-DVBT-TS-scripts-0.08-alt4.1.i586.rpm Linux-DVB-DVBT-TS scripts
perl-Linux-DVB-DVBT-scripts-2.20-alt3.1.i586.rpm Linux-DVB-DVBT scripts
perl-Linux-Epoll-0.016-alt1.1.i586.rpm O(1) multiplexing for Linux
perl-Linux-Ethtool-0.11-alt4.1.i586.rpm Linux SIOCETHTOOL ioctl interface
perl-Linux-FD-0.011-alt4.1.i586.rpm Linux specific special filehandles
perl-Linux-Fanotify-1.1-alt4.1.i586.rpm Perl interface to the Linux fanotify API
perl-Linux-Input-Info-0.2-alt4.1.i586.rpm perl module Linux-Input-Info
perl-Linux-Input-Info-scripts-0.2-alt4.1.i586.rpm Linux-Input-Info scripts
perl-Linux-Netfilter-Log-1.0-alt3.1.i586.rpm Linux netfilter logging (libnetfilter_log) wrapper
perl-Linux-Pdeathsig-0.10-alt4.1.i586.rpm Perl interface to request a signal on parent death
perl-Linux-PipeMagic-0.03-alt4.1.i586.rpm Perl extension to use the zero copy IO syscalls
Advertisement
Advertisement