kernel_samsung_a53x/fs/notify
Christian Brauner ef696bd15f fs: add file and path permissions helpers
[ Upstream commit 02f92b3868a1b34ab98464e76b0e4e060474ba10 ]

Add two simple helpers to check permissions on a file and path
respectively and convert over some callers. It simplifies quite a few
codepaths and also reduces the churn in later patches quite a bit.
Christoph also correctly points out that this makes codepaths (e.g.
ioctls) way easier to follow that would otherwise have to do more
complex argument passing than necessary.

Link: https://lore.kernel.org/r/20210121131959.646623-4-christian.brauner@ubuntu.com
Cc: David Howells <dhowells@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:33 +01:00
..
dnotify file: Rename fcheck lookup_fd_rcu 2024-11-19 12:27:27 +01:00
fanotify fs: add file and path permissions helpers 2024-11-19 12:27:33 +01:00
inotify fs: add file and path permissions helpers 2024-11-19 12:27:33 +01:00
fdinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fdinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsnotify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsnotify.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
group.c inotify, memcg: account inotify instances to kmemcg 2024-11-19 12:27:32 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mark.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
notification.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00