]> git.baikalelectronics.ru Git - kernel.git/commit
landlock: Move filesystem helpers and add a new one
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:10:55 +0000 (18:10 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 23 May 2022 11:27:58 +0000 (13:27 +0200)
commit489aea5ddaf2f927f557af53d40415b7297846e6
treed75fd6cc64d4afce5ab8e4170f1b5a85503be383
parente9b5e73e2058eaf67d72f5b5145f7b1ca7e12fc3
landlock: Move filesystem helpers and add a new one

Move the SB_NOUSER and IS_PRIVATE dentry check to a standalone
is_nouser_or_private() helper.  This will be useful for a following
commit.

Move get_mode_access() and maybe_remove() to make them usable by new
code provided by a following commit.

Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20220506161102.525323-6-mic@digikod.net
security/landlock/fs.c