linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] allow blk-zoned ioctls without CAP_SYS_ADMIN
@ 2021-06-01  8:39 Niklas Cassel
  2021-06-01  8:39 ` [PATCH v2 2/2] blk-zoned: allow BLKREPORTZONE " Niklas Cassel
  2021-06-01  8:39 ` [PATCH v2 1/2] blk-zoned: allow zone management send operations " Niklas Cassel
  0 siblings, 2 replies; 3+ messages in thread
From: Niklas Cassel @ 2021-06-01  8:39 UTC (permalink / raw)
  To: Jens Axboe, Shaun Tancheff, Hannes Reinecke, Damien Le Moal,
	Martin K. Petersen
  Cc: Damien Le Moal, Niklas Cassel, Jens Axboe, linux-block, linux-kernel

From: Niklas Cassel <niklas.cassel@wdc.com>

Allow the following blk-zoned ioctls: BLKREPORTZONE, BLKRESETZONE,
BLKOPENZONE, BLKCLOSEZONE, and BLKFINISHZONE to be performed without
CAP_SYS_ADMIN.

These ioctls instead only requires that the corresponding R/W access
control flag to be successfully set on the opened file descriptor.

(open()/openat() will fail with -EPERM if you try to open a file with
flags that you lack permission for.)

Niklas Cassel (2):
  blk-zoned: allow zone management send operations without CAP_SYS_ADMIN
  blk-zoned: allow BLKREPORTZONE without CAP_SYS_ADMIN

 block/blk-zoned.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

-- 
2.31.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-01  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  8:39 [PATCH v2 0/2] allow blk-zoned ioctls without CAP_SYS_ADMIN Niklas Cassel
2021-06-01  8:39 ` [PATCH v2 2/2] blk-zoned: allow BLKREPORTZONE " Niklas Cassel
2021-06-01  8:39 ` [PATCH v2 1/2] blk-zoned: allow zone management send operations " Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).