sys/prctl.h: add PR_SET_SYSCALL_USER_DISPATCH from linux v5.11
authorSzabolcs Nagy <nsz@port70.net>
Sun, 7 Mar 2021 20:50:17 +0000 (20:50 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2022 22:19:38 +0000 (17:19 -0500)
commitf35b99b38721c0e76152069254b642dd345da784
tree89cc1d506db69acfeea6d62c320dcae16a2dbdf6
parentb21f3ded780cc8fd8e510c99aeaf4a453d8c8a22
sys/prctl.h: add PR_SET_SYSCALL_USER_DISPATCH from linux v5.11

see

  linux commit 1446e1df9eb183fdf81c3f0715402f1d7595d4cb
  kernel: Implement selective syscall userspace redirection

  linux commit 36a6c843fd0d8e02506681577e96dabd203dd8e8
  entry: Use different define for selector variable in SUD

redirect syscalls to a userspace handler via SIGSYS, except for a specific
range of code. can be toggled via a memory write to a selector variable.
mainly for wine.
include/sys/prctl.h