[PATCH 01/26] ptrace: export ptrace_may_access
Christoph Hellwig
hch at infradead.org
Tue Dec 10 04:29:38 UTC 2024
On Mon, Dec 09, 2024 at 03:32:52PM +0200, Mika Kuoppala wrote:
> xe driver would like to allow fine grained access control
> for GDB debugger using ptrace. Without this export, the only
> option would be to check for CAP_SYS_ADMIN.
>
> The check intended for an ioctl to attach a GPU debugger
> is similar to the ptrace use case: allow a calling process
> to manipulate a target process if it has the necessary
> capabilities or the same permissions, as described in
> Documentation/process/adding-syscalls.rst.
>
> Export ptrace_may_access function to allow GPU debugger to
> have identical access control for debugger(s)
> as a CPU debugger.
This seems to mis an actual user or you forgot to Cc linux-kernel on it.
More information about the Intel-xe
mailing list