]> www.infradead.org Git - users/jedix/linux-maple.git/commit
landlock: Factor out IOCTL hooks
authorMickaël Salaün <mic@digikod.net>
Thu, 20 Mar 2025 19:07:02 +0000 (20:07 +0100)
committerMickaël Salaün <mic@digikod.net>
Wed, 26 Mar 2025 12:59:40 +0000 (13:59 +0100)
commite120b3c29302532aba2f46c0544ad728c56c11f5
treec93c3fbf420aca1e550c33b75dd2c8f9e69eecd2
parent2fc80c69df823628f1f0f2aace99e393c57112fa
landlock: Factor out IOCTL hooks

Compat and non-compat IOCTL hooks are almost the same, except to compare
the IOCTL command.  Factor out these two IOCTL hooks to highlight the
difference and minimize audit changes (see next commit).

Cc: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20250320190717.2287696-14-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/fs.c