]> 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)
committerMickaël Salaün <mic@digikod.net>
Fri, 21 Mar 2025 11:12:16 +0000 (12:12 +0100)
commit624f177d8f62032b4f3343c289120269645cec37
tree95588071c37c3145b53eeaa18ba445a37da7e46f
parentd1a088a87273620670b3a54b65ca504fab1febd4
landlock: Move code to ease future backports

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>
security/landlock/setup.c