All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/3] btrfs: Add three new unprivileged ioctls to allow normal users to call "sub list/show" etc.
@ 2018-05-18  2:54 Tomohiro Misono
  2018-05-18  2:54 ` [PATCH v6 1/3] btrfs: Add unprivileged ioctl which returns subvolume information Tomohiro Misono
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tomohiro Misono @ 2018-05-18  2:54 UTC (permalink / raw)
  To: linux-btrfs

changelog:
v5 -> v6
  - Update 1st patch by using btrfs_fs_root_no_name()
  - Return -EUCLEAN when btrfs_next_leaf/next_item() should not fail
  - Add Reviewed-by tag
v4 -> v5
  - Update error handling of 1st/2nd patch. See each log for details
  - Fix misspelling
v3 -> v4
  - call btrfs_next_leaf() after btrfs_search_slot() when the slot
    position exceeds the number of items
  - rebased to current misc-next
v2 -> v3
  - fix kbuild test bot warning
v1 -> v2
  - completely reimplement 1st/2nd ioctl to have user friendly api
  - various cleanup, remove unnecessary goto
===

This adds three new unprivileged ioctls:

1st patch:
  ioctl which returns subvolume information of ROOT_ITEM and ROOT_BACKREF
2nd patch:
  ioctl which returns subvolume information of ROOT_REF (without subvolume name)
3rd patch: 
  user version of ino_lookup ioctl which also performs permission check.

They will be used to implement user version of "subvolume list/show" etc.
in user tools.
See each commit log for more detals.

The implementation of btrfs-progs can be found in the ML titled as follows: 
  [PATCH 0/11] btrfs-progs: Rework of "subvolume list/show" and relax the root privileges of them

Tomohiro Misono (3):
  btrfs: Add unprivileged ioctl which returns subvolume information
  btrfs: Add unprivileged ioctl which returns subvolume's ROOT_REF
  btrfs: Add unprivileged version of ino_lookup ioctl

 fs/btrfs/ioctl.c           | 431 +++++++++++++++++++++++++++++++++++++++++++++
 include/uapi/linux/btrfs.h |  84 +++++++++
 2 files changed, 515 insertions(+)

-- 
2.14.3



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

end of thread, other threads:[~2018-05-18 12:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18  2:54 [PATCH v6 0/3] btrfs: Add three new unprivileged ioctls to allow normal users to call "sub list/show" etc Tomohiro Misono
2018-05-18  2:54 ` [PATCH v6 1/3] btrfs: Add unprivileged ioctl which returns subvolume information Tomohiro Misono
2018-05-18  2:58   ` Misono Tomohiro
2018-05-18  5:11   ` Gu, Jinxiang
2018-05-18 12:28   ` Gu, Jinxiang
2018-05-18  2:54 ` [PATCH v6 2/3] btrfs: Add unprivileged ioctl which returns subvolume's ROOT_REF Tomohiro Misono
2018-05-18  5:19   ` Gu, Jinxiang
2018-05-18 12:29   ` Gu, Jinxiang
2018-05-18  2:54 ` [PATCH v6 3/3] btrfs: Add unprivileged version of ino_lookup ioctl Tomohiro Misono
2018-05-18 12:30   ` Gu, Jinxiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.