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

2024-03-05 Thread Stef Bon
Thank you for your answer. Sorry for my late reaction. I've been ill for some weeks. You say that starting a new namespace might have problems with multithreaded programs (and which program isn't??). Can you explain why and where the problem occurs? Maybe a link with some context. Much appreciated

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

2024-02-21 Thread Adrian Vovk
On 2/21/24 15:09, Stef Bon wrote: Hi, I know that I can use a session file, and I know I can use a pamfile (I've written one myself) but what I want to know is how can I use systemd for that? Systemd handles the system, sessions and containers, so is it for example possible to set some paramet

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

2024-02-21 Thread Stef Bon
Hi, I know that I can use a session file, and I know I can use a pamfile (I've written one myself) but what I want to know is how can I use systemd for that? Systemd handles the system, sessions and containers, so is it for example possible to set some parameters and make the pam module of systemd

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

2024-02-21 Thread Adrian Vovk
On 2/21/24 12:57, Stef Bon 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

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

2024-02-21 Thread Mantas Mikulėnas
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 wrote: > Hi, > > maybe this is a question simple to answer. > > I want the user sessi