]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
landlock: Move code to ease future backports
authorMickaël Salaün <mic@digikod.net>
Tue, 18 Mar 2025 16:14:36 +0000 (17:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:55 +0000 (10:15 +0200)
commit9b0d24fa64cae26ef49dd7a2c4a3531ea03b85f9
tree541e4fd819c2241df17a96ef39d761067fcdd639
parent7bc5c360375d28ba5ef6298b0d53e735c81d66a1
landlock: Move code to ease future backports

commit 624f177d8f62032b4f3343c289120269645cec37 upstream.

To ease backports in setup.c, let's group changes from
__lsm_ro_after_init to __ro_after_init with commit f22f9aaf6c3d
("selinux: remove the runtime disable functionality"), and the
landlock_lsmid addition with commit f3b8788cde61 ("LSM: Identify modules
by more than name").

That will help to backport the following errata.

Cc: Günther Noack <gnoack@google.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250318161443.279194-2-mic@digikod.net
Fixes: f3b8788cde61 ("LSM: Identify modules by more than name")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/landlock/setup.c