Thread (16 messages) 16 messages, 5 authors, 2021-06-24

Re: [PATCH RFC] fuse: add generic file store

From: Peng Tao <hidden>
Date: 2021-06-11 12:48:29

On Wed, Jun 9, 2021 at 11:16 PM Enrico Weigelt, metux IT consult
[off-list ref] wrote:
On 08.06.21 14:41, Peng Tao wrote:

Hi,
Hi,
quoted
The initial RFC mail in the thread has a userspace example code. Does
it make sense to you?
Sorry, I had missed that, now found it.

There're some things I don't quite understand:

* it just stores fd's I don't see anything where it is actually returned
   to some open() operation.
The FUSE_DEV_IOC_RESTORE_FD ioctl returns the opened fd to a different process.
* the store is machine wide global - everybody uses the same number
   space, dont see any kind of access conrol ... how about security ?
The idea is that anyone capable of opening /dev/fuse can retrieve the FD.
I don't believe that just storing the fd's somewhere is really helpful
for that purpose - the fuse server shall be able to reply the open()
request with an fd, which then is directly transferred to the client.
Could you describe your use case a bit? How does your client talk to
your server? Through open syscall or through some process-to-process
RPC calls?

Cheers,
Tao
-- 
Into Sth. Rich & Strange
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help