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)
commit3a862cacf8670729b1ad8fc28e4f7e078f9c570c
tree9877beae385b4417b53face057d66d8b65ebfed1
parent67daf270cebcf7aab4b3292b36f9adf357b23ddc
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