summaryrefslogtreecommitdiff
path: root/drivers/char/drm/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorGünther Noack <gnoack3000@gmail.com>2026-03-27 17:48:35 +0100
committerMickaël Salaün <mic@digikod.net>2026-04-07 18:51:10 +0200
commitf433fd3fa275e52fc1c7107e8aa57f1d037ee341 (patch)
treeaba86398beb555c10a7b66846b9e4f97fd8acfcf /drivers/char/drm/git@git.tavy.me:linux.git
parent0f42f5be0b21c625ca52b9df96f452153aea05a8 (diff)
selftests/landlock: Check that coredump sockets stay unrestricted
Even when a process is restricted with the new LANDLOCK_ACCESS_FS_RESOLVE_UNIX right, the kernel can continue writing its coredump to the configured coredump socket. In the test, we create a local server and rewire the system to write coredumps into it. We then create a child process within a Landlock domain where LANDLOCK_ACCESS_FS_RESOLVE_UNIX is restricted and make the process crash. The test uses SO_PEERCRED to check that the connecting client process is the expected one. Includes a fix by Mickaël Salaün for setting the EUID to 0 (see [1]). Link[1]: https://lore.kernel.org/all/20260218.ohth8theu8Yi@digikod.net/ Suggested-by: Mickaël Salaün <mic@digikod.net> Signed-off-by: Günther Noack <gnoack3000@gmail.com> Link: https://lore.kernel.org/r/20260327164838.38231-11-gnoack3000@gmail.com Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'drivers/char/drm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions