kernel_samsung_a53x/fs/verity
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
..
enable.c fs: add file and path permissions helpers 2024-11-19 12:27:33 +01:00
fsverity_private.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_algs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
measure.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
open.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
read_metadata.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signature.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
verify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00