dazuko-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dazuko-help] Compiling of dazuko 2.3.5 fails on kernel 2.6.25.4


From: John Ogness
Subject: Re: [Dazuko-help] Compiling of dazuko 2.3.5 fails on kernel 2.6.25.4
Date: Mon, 16 Jun 2008 19:52:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix)

On 2008-06-16, Martin Koch <address@hidden> wrote:
> My .config: ...

I notice from your .config that you are not using a "vanilla" kernel
(directly from kernel.org). I do not want to provide support for all
the various distributions in the upstream release of Dazuko. The
individual distributions should be doing that.

Luckily your particular problem was already solved in the past and is
part of the Linux 2.6 syscall hooking code. Copying the "fix" from
that code I was able to quickly generate this patch. If you apply this
patch (after applying the Dazuko patch), it should work.

# cd /linux/source/path
# cat patch-dazuko-noparent.diff | patch -p1

Hopefully this is the only deviation in the kernel API that Dazuko
uses.

(For 2.6.25.6 from kernel.org, the release patch works without any
problems.)

John Ogness

-- 
Dazuko Maintainer

This is a simple patch for kernels that use "p_pptr" instead of "parent"
for the name of the pointer to the parent task struct.

--- a/security/dazuko/dazuko_linux26.c  2008-06-16 19:37:27.000000000 +0200
+++ b/security/dazuko/dazuko_linux26.c  2008-06-16 19:47:51.000000000 +0200
@@ -426,13 +426,13 @@
                if (ts == parent)
                        return 0;
 
-               if (ts->parent == NULL)
+               if (ts->p_pptr == NULL)
                        break;
 
-               if (ts == ts->parent)
+               if (ts == ts->p_pptr)
                        break;
 
-               ts = ts->parent;
+               ts = ts->p_pptr;
        }
 
        return -1;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]