landlock: Create find_rule() from unmask_layers()
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:10:53 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:23 +0000 (10:26 +0200)
commit4055085aa8b40918fa52bd5bf302f83b29514f83
treeb95b726cc89a19c9dfcdd4a974ed1b7023bc4bc2
parent231108420643b8997687887ebef0a048080f556d
landlock: Create find_rule() from unmask_layers()

commit 2cd7cd6eed88b8383cfddce589afe9c0ae1d19b4 upstream.

This refactoring will be useful in a following commit.

Reviewed-by: Paul Moore <paul@paul-moore.com>
Link: https://lore.kernel.org/r/20220506161102.525323-4-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/landlock/fs.c