From: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: [PATCH v5 0/3] btrfs: Add three new unprivileged ioctls to allow normal users to call "sub list/show" etc.
Date: Wed, 16 May 2018 14:49:36 +0900 [thread overview]
Message-ID: <cover.1526446338.git.misono.tomohiro@jp.fujitsu.com> (raw)
[based on current misc-next]
changelog:
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 | 452 +++++++++++++++++++++++++++++++++++++++++++++
include/uapi/linux/btrfs.h | 84 +++++++++
2 files changed, 536 insertions(+)
--
2.14.3
next reply other threads:[~2018-05-16 5:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-16 5:49 Tomohiro Misono [this message]
2018-05-16 5:49 ` [PATCH v5 1/3] btrfs: Add unprivileged ioctl which returns subvolume information Tomohiro Misono
2018-05-17 6:11 ` Gu, Jinxiang
2018-05-17 6:39 ` Qu Wenruo
2018-05-18 1:00 ` Misono Tomohiro
2018-05-18 1:10 ` Qu Wenruo
2018-05-18 1:37 ` Misono Tomohiro
2018-05-16 5:49 ` [PATCH v5 2/3] btrfs: Add unprivileged ioctl which returns subvolume's ROOT_REF Tomohiro Misono
2018-05-17 6:32 ` Gu, Jinxiang
2018-05-17 6:48 ` Qu Wenruo
2018-05-16 5:49 ` [PATCH v5 3/3] btrfs: Add unprivileged version of ino_lookup ioctl Tomohiro Misono
2018-05-17 6:56 ` [PATCH v5 0/3] btrfs: Add three new unprivileged ioctls to allow normal users to call "sub list/show" etc Qu Wenruo
2018-05-17 8:25 ` Misono Tomohiro
2018-05-17 9:06 ` Qu Wenruo
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=cover.1526446338.git.misono.tomohiro@jp.fujitsu.com \
--to=misono.tomohiro@jp.fujitsu.com \
--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;
as well as URLs for NNTP newsgroup(s).