Files
linux/security/landlock
Mickaël Salaün 88da52ccd6 landlock: Fix d_parent walk
The WARN_ON_ONCE() in collect_domain_accesses() can be triggered when
trying to link a root mount point.  This cannot work in practice because
this directory is mounted, but the VFS check is done after the call to
security_path_link().

Do not use source directory's d_parent when the source directory is the
mount point.

Cc: Günther Noack <[email protected]>
Cc: Paul Moore <[email protected]>
Cc: [email protected]
Reported-by: [email protected]
Fixes: b91c3e4ea7 ("landlock: Add support for file reparenting with LANDLOCK_ACCESS_FS_REFER")
Closes: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
[mic: Fix commit message]
Signed-off-by: Mickaël Salaün <[email protected]>
2024-05-31 16:41:52 +02:00
..
2024-02-27 11:21:45 +01:00
2023-11-12 22:54:42 -05:00
2022-05-09 12:31:10 +02:00
2024-05-31 16:41:52 +02:00
2022-10-19 09:01:44 +02:00
2024-02-27 11:21:45 +01:00
2022-05-09 12:31:10 +02:00
2022-05-09 12:31:10 +02:00