Mojo::...mespace(3pm)
π Mojo::IOLoop::ReadWriteProcess::Namespace(3pm) π
okay bestie, gather round π«Ά this is the manpage for Mojo::IOLoop::ReadWriteProcess::Namespace, straight outta the User Contributed Perl Documentation. It's the Namespace object for Mojo::IOLoop::ReadWriteProcess. Yes it's a mouthful, no you don't have to say it out loud, just vibe with it β¨
πΈ NAME πΈ
Mojo::IOLoop::ReadWriteProcess::Namespace β the Namespace object for Mojo::IOLoop::ReadWriteProcess. That's the whole name, that's the whole job, she's iconic and she knows it π
β¨ SYNOPSIS β¨
Like, here's the whole vibe in four lines, no cap:
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();
See? Make the object, unshare it, mount /proc, isolate. Chef's kiss π
π¦ METHODS π¦
Mojo::IOLoop::ReadWriteProcess::Namespace inherits all the methods from Mojo::Base (yes, all of them, she's got the whole family tree π) and then implements these shiny new ones down here π
π unshare
use Mojo::IOLoop::ReadWriteProcess::Namespace qw(CLONE_ALL);
my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->unshare(CLONE_ALL);
So basically this is a wrapper around the unshare syscall, and it accepts the same arguments as that syscall does. The constants? You can export them from Mojo::IOLoop::ReadWriteProcess::Namespace β that's literally what the qw(CLONE_ALL) up there is doing, bestie, it's giving β¨convenienceβ¨
π mount
my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->mount("proc", "/proc", "proc");
Another wrapper, another slay β this one wraps the mount syscall and, you guessed it, accepts the same arguments. That's it, that's the method π
π§ isolate
my $ns = Mojo::IOLoop::ReadWriteProcess::Namespace->new();
$ns->isolate();
This one mounts /proc appropriately to achieve process isolation during process containment. The way that it justβ¦ handles it for you? π If you wanna know more about the containment side of things, go peek at Mojo::IOLoop::ReadWriteProcess::Container. iykyk π
π 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. Periodt. π
β AUTHOR β
Ettore Di Giacinto <edigiacinto@suse.com> β thank you for your service, legend π
and that's the whole page, bestie!! π¦ this one came from perl v5.42.0, dated 2025-07-25, and it's the manpage for Mojo::...mespace(3pm). Go forth and unshare responsibly, mwah ππβ¨
π¦ where this page comes from
- fedora 43: perl-Mojo-IOLoop-ReadWriteProcess 1.1.0-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms