[systemd-devel] Howto unshare when user session starts.

Mantas Mikulėnas grawity at gmail.com
Wed Feb 21 19:14:33 UTC 2024


Use pam_namespace for mount namespacing (part of Linux-PAM, not systemd). I
don't think it handles user namespaces yet, but that would probably be a
fairly small change.

On Wed, Feb 21, 2024 at 7:57 PM Stef Bon <stefbon at gmail.com> wrote:

> Hi,
>
> maybe this is a question simple to answer.
>
> I want the user sessions to start in a {mount,user} namespace. How can
> I do this? I know there is the command systemd-nspawn. But to use this
> I have to adjust the first command to start a session. Or is it
> possible by setting parameters in logind?
>
> Stef
> the Netherlands
>


-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240221/b525c919/attachment.htm>


More information about the systemd-devel mailing list