diff options
| author | Jingbo Xu <[email protected]> | 2023-06-13 08:40:08 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-20 18:49:23 +0000 |
| commit | 9a72a02456a839676fe8f220a44ef00951596047 (patch) | |
| tree | 6398bcf314b7fa12f026bea8a7a4f184496026f7 /lib/string_helpers.c | |
| parent | block: disallow Persistent Reservation on partitions (diff) | |
| download | kernel-9a72a02456a839676fe8f220a44ef00951596047.tar.gz kernel-9a72a02456a839676fe8f220a44ef00951596047.zip | |
block: fine-granular CAP_SYS_ADMIN for Persistent Reservation
Allow of unprivileged Persistent Reservation operations on devices
if the write permission check on the device node has passed.
brw-rw---- 1 root disk 259, 0 Jun 13 07:09 /dev/nvme0n1
In the example above, the "disk" group of nvme0n1 is also allowed to
make reservations on the device even without CAP_SYS_ADMIN.
Signed-off-by: Jingbo Xu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
