summaryrefslogtreecommitdiff
path: root/debian/patches/0013-hurd-add-proc_make_task_namespace.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-13 16:16:07 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-13 16:16:07 +0100
commit2dc04aaecba268b79f79fdfa2484c15bb4a71970 (patch)
tree8029790c2a5bcd6cec710bf96e99e85bc1c61a62 /debian/patches/0013-hurd-add-proc_make_task_namespace.patch
parentdd88ee3755c39d17e11319267cf7bb46a83a7d84 (diff)
add patch series
Diffstat (limited to 'debian/patches/0013-hurd-add-proc_make_task_namespace.patch')
-rw-r--r--debian/patches/0013-hurd-add-proc_make_task_namespace.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/patches/0013-hurd-add-proc_make_task_namespace.patch b/debian/patches/0013-hurd-add-proc_make_task_namespace.patch
new file mode 100644
index 00000000..d6a52cbd
--- /dev/null
+++ b/debian/patches/0013-hurd-add-proc_make_task_namespace.patch
@@ -0,0 +1,45 @@
+From 7ce85c915882053171ba9a551f241f6e0a3cb7d4 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Wed, 12 Nov 2014 15:30:18 +0100
+Subject: [PATCH hurd 13/14] hurd: add `proc_make_task_namespace'
+
+Add a new RPC to the process protocol to create task namespaces.
+These can be used by an unprivileged process to claims the
+responsibility to manage all tasks in this namespace. Any task
+created in this namespace will automatically be declared a child of
+the root process, and a `mach_notify_new_task' message is sent to a
+given port. If the root process dies, the proc server will terminate
+all tasks in the namespace.
+
+* hurd/process.defs (proc_make_task_namespace): New RPC.
+---
+ hurd/process.defs | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/hurd/process.defs b/hurd/process.defs
+index 498faba..4ceb69e 100644
+--- a/hurd/process.defs
++++ b/hurd/process.defs
+@@ -1,5 +1,5 @@
+ /* Definitions for process server interface
+- Copyright (C) 1992,93,94,95,96,97,2001,2013 Free Software Foundation
++ Copyright (C) 1992,93,94,95,96,97,2001,13,14 Free Software Foundation
+
+ This file is part of the GNU Hurd.
+
+@@ -404,3 +404,12 @@ routine proc_get_code (
+ process: process_t;
+ out start_code: vm_address_t;
+ out end_code: vm_address_t);
++
++/* Create a new task namespace. PROCESS claims the responsibility to
++ manage all tasks in this namespace. Any task created in this
++ namespace will automatically be declared a child of PROCESS, and a
++ `mach_notify_new_task' message is sent to NOTIFY. If PROCESS dies,
++ the proc server will terminate all tasks in the namespace. */
++routine proc_make_task_namespace (
++ process: process_t;
++ notify: mach_port_send_t);
+--
+2.1.1
+