summaryrefslogtreecommitdiff
path: root/debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch')
-rw-r--r--debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch b/debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch
deleted file mode 100644
index b8ed1477..00000000
--- a/debian/patches/random-fixes0008-trans-proxy-defpager-convert-to-trivfs-dynamic-class.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 16562faf8a87b422e1581161bcedc4622ac3f6f4 Mon Sep 17 00:00:00 2001
-From: Justus Winter <4winter@informatik.uni-hamburg.de>
-Date: Sun, 27 Sep 2015 17:23:13 +0200
-Subject: [PATCH hurd 8/9] trans/proxy-defpager: convert to trivfs dynamic
- classes and buckets
-
-libtrivfs contains two ways of managing more than one port class and
-bucket. There is the old way of using a statically allocated array
-with explicit length, and the new way with dynamically allocated
-vectors.
-
-Converting all users to the new way of handling multiple classes
-and/or buckets, we can simplify the code in libtrivfs. In many cases,
-the code will be simpler and more expressive for the user.
-
-This also fixes a severe bug. As no classes are given to
-`trivfs_startup', they are created and inserted into the dynamic
-vector of classes. The helper function `allowed', however, used the
-first item of the previously used static array, which is NULL. This
-circumvented the typecheck, allowing the default pager protocol to be
-spoken over control ports, likely resulting in a crash.
-
-* trans/proxy-defpager.c: Convert to dynamic classes and buckets.
----
- trans/proxy-defpager.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/trans/proxy-defpager.c b/trans/proxy-defpager.c
-index 5fe8ffd..bc0d354 100644
---- a/trans/proxy-defpager.c
-+++ b/trans/proxy-defpager.c
-@@ -34,7 +34,7 @@ static error_t
- allowed (mach_port_t port, int mode)
- {
- struct trivfs_protid *cred = ports_lookup_port
-- (0, port, trivfs_protid_portclasses[0]);
-+ (0, port, trivfs_dynamic_protid_port_classes[0]);
- if (!cred)
- return MIG_BAD_ID;
- error_t result = (cred->po->openmodes & mode) ? 0 : EACCES;
---
-2.1.4
-