Re: [9fans] Re: Mounting a 9P filesystem under a Linux "user namespace"

2024-02-23 Thread Edouard Klein
Again for the record, if anybody is looking for a 9P2000.L FUSE implementation, I had to write one, I used github.com/hugelgupf/p9 as a base: git clone g...@the-dam.org:f29p With that, one can mount a 9P2000.L server from inside a linux 'mount namespace'. I'll talk about that if my paper passes

[9fans] Re: Mounting a 9P filesystem under a Linux "user namespace"

2023-10-30 Thread cigar562hfsp952fans
Edouard Klein writes: > I'm about to write my own 9P2000.L fuse wrapper, but before I dive into > that, I thought I'd ask here: has anybody ever mounted a 9P filesystem > from inside a Linux user namespace, or even better, a full blown > container ? Well, all my containers are in the recycling

Re: [9fans] Re: Mounting a 9P filesystem under a Linux "user namespace"

2023-10-28 Thread Edouard Klein
For the record here is the lkml post https://lkml.org/lkml/2023/10/28/155 Edouard Klein writes: > Thanks Moody for the nudge in a direction I hadn't explored. > > It seems that Linux does not see 9p as been safe to mount without > privilege. From what I understand, only FS with the

Re: [9fans] Re: Mounting a 9P filesystem under a Linux "user namespace"

2023-10-28 Thread Edouard Klein
Thanks Moody for the nudge in a direction I hadn't explored. It seems that Linux does not see 9p as been safe to mount without privilege. From what I understand, only FS with the FS_USERNS_MOUNT flag can be mounted in a user namespace. It seems that v9fs is not one of them: For example, tmpfs is

[9fans] Re: Mounting a 9P filesystem under a Linux "user namespace"

2023-10-27 Thread moody
Edouard, I am no Linux expert, but I think if you create a mount namespace as part of the user namespace you will be allowed to execute mounts without root.  In terms of clients, I am not aware of any other then the one within the linux kernel. Regards, Moody