OSDN Git Service

RFC: ANDROID: vfs: Add permission2 for filesystems with per mount permissions
authorDaniel Rosenberg <drosen@google.com>
Wed, 26 Oct 2016 23:27:45 +0000 (16:27 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commite9b09822e5b07b7189171946b4678ce7d4195ca9
treeb69af6ec9360dd7bf819e0de4e8774139fa0eed0
parentf6e28560abc184c237f850e668284807b30d52f8
RFC: ANDROID: vfs: Add permission2 for filesystems with per mount permissions

This allows filesystems to use their mount private data to
influence the permssions they return in permission2. It has
been separated into a new call to avoid disrupting current
permission users.

Change-Id: I9d416e3b8b6eca84ef3e336bd2af89ddd51df6ca
Signed-off-by: Daniel Rosenberg <drosen@google.com>
[AmitP: Minor refactoring of original patch to align with
        changes from the following upstream commit
        4bfd054ae11e ("fs: fold __inode_permission() into inode_permission()").

        Also introduce vfs_mkobj2(), because do_create()
        moved from using vfs_create() to vfs_mkobj()
        eecec19d9e70 ("mqueue: switch to vfs_mkobj(), quit abusing ->d_fsdata")

        do_create() is dropped/cleaned up upstream so a
        minor refactoring there as well.
        066cc813e94a ("do_mq_open(): move all work prior to dentry_open() into a helper")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
fs/attr.c
fs/exec.c
fs/namei.c
fs/notify/fanotify/fanotify_user.c
fs/notify/inotify/inotify_user.c
fs/open.c
include/linux/fs.h
include/linux/namei.h
ipc/mqueue.c
security/inode.c