Re: [PATCH 01/26] ptrace: export ptrace_may_access

2024-12-12 Thread Joonas Lahtinen
Quoting Christoph Hellwig (2024-12-10 06:29:38) > 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. > > > > Th

[PATCH 01/26] ptrace: export ptrace_may_access

2024-12-09 Thread Mika Kuoppala
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 tar