linux-stable/fs/cachefiles
Miklos Szeredi 24a81759b6 cachefiles: use vfs_tmpfile_open() helper
Use the vfs_tmpfile_open() helper instead of doing tmpfile creation and
opening separately.

The only minor difference is that previously no permission checking was
done, while vfs_tmpfile_open() will call may_open() with zero access mask
(i.e. no access is checked).  Even if this would make a difference with
callers caps (don't see how it could, even in the LSM codepaths) cachfiles
raises caps before performing the tmpfile creation, so this extra
permission check will not result in any regression.

Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2022-09-24 07:00:00 +02:00
..
cache.c
daemon.c
error_inject.c
interface.c
internal.h cachefiles: make on-demand request distribution fairer 2022-08-31 16:41:10 +01:00
io.c
Kconfig
key.c
main.c
Makefile
namei.c cachefiles: use vfs_tmpfile_open() helper 2022-09-24 07:00:00 +02:00
ondemand.c cachefiles: make on-demand request distribution fairer 2022-08-31 16:41:10 +01:00
security.c
volume.c
xattr.c