On 2/21/25 17:13, Bernd Schubert wrote:
On 2/21/25 17:24, Amir Goldstein wrote:
...
+/*
+ * Register new backing file for passthrough, getting backing map from
URING_CMD data
+ */
+static int fuse_uring_backing_open(struct io_uring_cmd *cmd,
+ unsigned int issue_flags, struct fuse_conn *fc)
+{
+ const struct fuse_backing_map *map = io_uring_sqe_cmd(cmd->sqe);
+ int ret = fuse_backing_open(fc, map);
+
I am not that familiar with io_uring, so I need to ask -
fuse_backing_open() does
fb->cred = prepare_creds();
to record server credentials
what are the credentials that will be recorded in the context of this
io_uring command?
This is run from the io_uring_enter() syscall - it should not make
That's not necessarily true ...
a difference to an ioctl, AFAIK. Someone from @io-uring please
correct me if I'm wrong.
... but it's executed in a context that inherits creds from the
task that submitted the request. It might be trickier if the app
changes creds at runtime, but IIRC the request tries to grab
creds at submission time.
--
Pavel Begunkov