Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Mark Harmstone <maharmstone@meta.com>
To: "dsterba@suse.cz" <dsterba@suse.cz>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs: add io_uring interface for encoded reads
Date: Mon, 12 Aug 2024 09:20:19 +0000	[thread overview]
Message-ID: <879d0861-9a67-4e02-b6ec-60f2c6c6cb40@meta.com> (raw)
In-Reply-To: <20240809183418.GC25962@twin.jikos.cz>

On 9/8/24 19:34, David Sterba wrote:
> Where is the CAP_SYS_ADMIN check done? It's not in this patch so I
> assume it's somewhere in io_uring but I don't see it. Thanks.

It still gets done in btrfs_ioctl_encoded_read, which gets called by 
io_uring in a task with the process context.

Mark

  reply	other threads:[~2024-08-12  9:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-09 17:35 [PATCH] btrfs: add io_uring interface for encoded reads Mark Harmstone
2024-08-09 18:34 ` David Sterba
2024-08-12  9:20   ` Mark Harmstone [this message]
2024-08-12 11:23     ` David Sterba
2024-08-12 11:26 ` Christoph Hellwig
2024-08-12 14:46   ` Mark Harmstone
2024-08-12 15:03     ` Pavel Begunkov
2024-08-12 16:10   ` Pavel Begunkov
2024-08-12 16:58     ` David Sterba
2024-08-12 19:17       ` Pavel Begunkov
2024-08-13  0:49         ` David Sterba
2024-08-13  1:06           ` Pavel Begunkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=879d0861-9a67-4e02-b6ec-60f2c6c6cb40@meta.com \
    --to=maharmstone@meta.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox