Re: [PATCH RFC] kernel: Implement selective syscall redirection through personality

2020-07-08 Thread Kees Cook
On Wed, Jul 08, 2020 at 01:56:00AM -0400, Gabriel Krisman Bertazi wrote: > Introduce a mechanism to quickly disable/enable syscall handling for a > specific process and redirect to userspace via SIGSYS. This is useful > for processes that have different personalities depending on which part > of t

[PATCH RFC] kernel: Implement selective syscall redirection through personality

2020-07-07 Thread Gabriel Krisman Bertazi
The problem I'm trying to solve is that modern Windows applications are executing system call instructions directly from the application's code without going through the WinAPI. This breaks Wine emulation, because it doesn't have a chance to intercept and emulate these syscalls before they are sub