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