Skip to main content

Timeline for Running su inside mount namespace

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Jan 19, 2024 at 16:50 answer added Sam Liddicott timeline score: 1
May 6, 2019 at 20:20 comment added Jake @A.B If you could reference any code for lxc-console that handles this, then that would be very helpful. Thank you
May 4, 2019 at 13:25 comment added A.B I think the original terminal is unreacheable in the namespace. You'd have to bind mount the original /dev/pts/ there. That doesn't mean it's the right way (security issues), just an observation. As a parallel, this happens with LXC and lxc-attach. lxc-console handles it, perhaps like the python command.
May 4, 2019 at 8:23 comment added Jake Inside the mount namespace, I want ns_dir to eventually become root. I don't want to mount the original / anywhere. This is how LXC uses pivot_root: github.com/lxc/lxc/blob/master/src/lxc/conf.c#L1516
May 4, 2019 at 2:43 comment added 炸鱼薯条德里克 pivot_root . . looks weird to me. Could you explain where do you want to mount the original /?
May 4, 2019 at 2:07 history edited Jake CC BY-SA 4.0
added 135 characters in body
May 3, 2019 at 22:01 history asked Jake CC BY-SA 4.0