<div dir="ltr">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.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 21, 2024 at 7:57 PM Stef Bon <<a href="mailto:stefbon@gmail.com">stefbon@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
maybe this is a question simple to answer.<br>
<br>
I want the user sessions to start in a {mount,user} namespace. How can<br>
I do this? I know there is the command systemd-nspawn. But to use this<br>
I have to adjust the first command to start a session. Or is it<br>
possible by setting parameters in logind?<br>
<br>
Stef<br>
the Netherlands<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div>