summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2026-09-10 16:48:34 +0200
committerPaul Moore <paul@paul-moore.com>2026-09-14 16:41:54 -0400
commit63b4c8561b436e8950409d6041fce43f12936f59 (patch)
tree48139526216fe5151eb56059594646390a5a750a /include/uapi/linux
parenteb221044db2d687be7253cd203df4ee648232c3b (diff)
downloadlinux-next-63b4c8561b436e8950409d6041fce43f12936f59.tar.gz
linux-next-63b4c8561b436e8950409d6041fce43f12936f59.zip
selftests/landlock: Check full ioctl commands in audit records
The ioctl audit test uses FIONREAD, whose command value fits in 16 bits. It therefore cannot detect truncation of encoded direction and size bits. Use an architecture-independent unknown command with set upper bits and require its complete value in the audit record. Landlock rejects the command before the device handles it, and the existing ioctl enforcement test already exercises the same request. The new expectation fails with ioctlcmd=0xfeee on an unfixed kernel and passes with ioctlcmd=0xc00ffeee after the shared audit field is widened. Signed-off-by: Mickaël Salaün <mic@digikod.net> Reviewed-by: Günther Noack <gnoack@google.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions