]> git.baikalelectronics.ru Git - kernel.git/commit
fs: add anon_inode_getfile_secure() similar to anon_inode_getfd_secure()
authorPaul Moore <paul@paul-moore.com>
Tue, 2 Feb 2021 00:22:44 +0000 (19:22 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 20 Sep 2021 02:35:37 +0000 (22:35 -0400)
commitdb72d96dea8a72416cd9cace0e26d409ff0ed8e2
tree9877beae385b4417b53face057d66d8b65ebfed1
parenta78f1c1113ea6ba4b45cbc7eedfed6d6b6e19c88
fs: add anon_inode_getfile_secure() similar to anon_inode_getfd_secure()

Extending the secure anonymous inode support to other subsystems
requires that we have a secure anon_inode_getfile() variant in
addition to the existing secure anon_inode_getfd() variant.

Thankfully we can reuse the existing __anon_inode_getfile() function
and just wrap it with the proper arguments.

Acked-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/anon_inodes.c
include/linux/anon_inodes.h