NAME

Mojo::IOLoop::ReadWriteProcess::Namespace - Namespace object for Mojo::IOLoop::ReadWriteProcess.

SYNOPSIS

use Mojo::IOLoop::ReadWriteProcess::Namespace qw(CLONE_ALL);

my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();

$ns->unshare(CLONE_ALL);
$ns->mount("proc", "/proc", "proc");
$ns->isolate();

METHODS

Mojo::IOLoop::ReadWriteProcess::Namespace inherits all methods from Mojo::Base and implements the following new ones.

unshare

use Mojo::IOLoop::ReadWriteProcess::Namespace qw(CLONE_ALL);
my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->unshare(CLONE_ALL);

Wrapper around the unshare syscall, accepts the same arguments, constants can be exported from Mojo::IOLoop::ReadWriteProcess::Namespace.

mount

my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->mount("proc", "/proc", "proc");

Wrapper around the mount syscall, accepts the same arguments.

isolate

my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->isolate();

Mount appropriately /proc to achieve process isolation during process containment, see Mojo::IOLoop::ReadWriteProcess::Container.

LICENSE

Copyright (C) Ettore Di Giacinto.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Ettore Di Giacinto <edigiacinto@suse.com>