summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide/syscall-user-dispatch.rst
diff options
context:
space:
mode:
authorGregory Price <gourry.memverge@gmail.com>2023-04-07 13:18:33 -0400
committerThomas Gleixner <tglx@linutronix.de>2023-04-16 14:23:07 +0200
commit3f67987cdc09778e75098f9f5168832f8f8e1f1c (patch)
tree48648bbc78fee9bc257739aff7f79031071ae0e8 /Documentation/admin-guide/syscall-user-dispatch.rst
parent463b7715e7ce367fce89769c5d85e31595715ee1 (diff)
ptrace: Provide set/get interface for syscall user dispatch
The syscall user dispatch configuration can only be set by the task itself, but lacks a ptrace set/get interface which makes it impossible to implement checkpoint/restore for it. Add the required ptrace requests and the get/set functions in the syscall user dispatch code to make that possible. Signed-off-by: Gregory Price <gregory.price@memverge.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20230407171834.3558-4-gregory.price@memverge.com
Diffstat (limited to 'Documentation/admin-guide/syscall-user-dispatch.rst')
-rw-r--r--Documentation/admin-guide/syscall-user-dispatch.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/admin-guide/syscall-user-dispatch.rst b/Documentation/admin-guide/syscall-user-dispatch.rst
index 60314953c728..e3cfffef5a63 100644
--- a/Documentation/admin-guide/syscall-user-dispatch.rst
+++ b/Documentation/admin-guide/syscall-user-dispatch.rst
@@ -73,6 +73,10 @@ thread-wide, without the need to invoke the kernel directly. selector
can be set to SYSCALL_DISPATCH_FILTER_ALLOW or SYSCALL_DISPATCH_FILTER_BLOCK.
Any other value should terminate the program with a SIGSYS.
+Additionally, a tasks syscall user dispatch configuration can be peeked
+and poked via the PTRACE_(GET|SET)_SYSCALL_USER_DISPATCH_CONFIG ptrace
+requests. This is useful for checkpoint/restart software.
+
Security Notes
--------------