[From nobody Sun Mar 29 12:41:52 2009
Received: (at submit) by bugs.debian.org; 26 Mar 2009 21:22:23 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 92; hammy, 147; neutral, 62; spammy,
	4. spammytokens:1.000-1--H*rp:D*inbox.com, 1.000-1--H*F:D*inbox.com,
	1.000-1--H*M:eagle, 0.974-+--H*r:bugs.debian.org
	hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug,
	0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--H*x:3.48
X-Spam-Status: No, score=-14.2 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
	MURPHY_DRUGS_REL8, RDNS_DYNAMIC, SPF_SOFTFAIL, XMAILER_REPORTBUG,
	X_DEBBUGS_CC
	autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Return-path: &lt;thomas.siedlich@inbox.com&gt;
Received: from c83-248-183-31.bredband.comhem.se ([83.248.183.31]
	helo=eagle.racbu.de) by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from &lt;thomas.siedlich@inbox.com&gt;) id 1Lmx1r-00010T-0n
	for submit@bugs.debian.org; Thu, 26 Mar 2009 21:22:23 +0000
Content-Type: multipart/mixed; boundary=&quot;===============1092215817==&quot;
MIME-Version: 1.0
From: Thomas Siedlich &lt;thomas.siedlich@inbox.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: loop-aes-source: fails to compile with 2.6.29 kernel
Message-ID: &lt;20090326212227.25889.11819.reportbug@eagle.racbu.de&gt;
X-Mailer: reportbug 3.48
Date: Thu, 26 Mar 2009 22:22:27 +0100
X-Debbugs-Cc: thomas.siedlich@inbox.com
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============1092215817==
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Disposition: inline

Package: loop-aes-source
Version: 3.2e-1
Severity: normal
Tags: patch


loop-aes-source fails to compile with kernel 2.6.29:

--------------------------8&lt;-------------------------
make[4]: Entering directory `/usr/src/linux-2.6.29'
  CC [M]  /usr/src/modules/loop-aes/tmp-d-kbuild/patched-loop.o
/usr/src/modules/loop-aes/tmp-d-kbuild/patched-loop.c: In function ‘loop_set_status’:
/usr/src/modules/loop-aes/tmp-d-kbuild/patched-loop.c:1657: error: ‘struct task_struct’ has no member named ‘uid’
/usr/src/modules/loop-aes/tmp-d-kbuild/patched-loop.c:1713: error: ‘struct task_struct’ has no member named ‘uid’
make[5]: *** [/usr/src/modules/loop-aes/tmp-d-kbuild/patched-loop.o] Error 1
make[4]: *** [_module_/usr/src/modules/loop-aes/tmp-d-kbuild] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.29'
-----------------------&gt;8---------------------------

This patch works for me.
cd /usr/src/modules/loop-aes
patch -p1 &lt; loop-aes_kernel2.6.29.patch

Thomas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.2-200901271 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages loop-aes-source depends on:
ii  build-essential               11.4       Informational list of build-essent
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
ii  debhelper                     7.0.17     helper programs for debian/rules
ii  module-assistant              0.10.11.0  tool to make module package creati

Versions of packages loop-aes-source recommends:
pn  loop-aes-testsuite            &lt;none&gt;     (no description available)

loop-aes-source suggests no packages.

-- no debconf information

--===============1092215817==
Content-Type: text/x-diff; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;loop-aes_kernel2.6.29.patch&quot;

diff -Naur loop-aes.orig/glue.c loop-aes/glue.c
--- loop-aes.orig/glue.c	2009-02-22 14:37:09.000000000 +0000
+++ loop-aes/glue.c	2009-03-24 18:45:26.000000000 +0000
@@ -275,7 +275,7 @@
     } un;
 
 #if LINUX_VERSION_CODE &gt;= 0x20200
-    if(lo-&gt;lo_key_owner != current-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
+    if(lo-&gt;lo_key_owner != current-&gt;cred-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
         return -EPERM;
 #endif
 
diff -Naur loop-aes.orig/loop.c-2.6.patched loop-aes/loop.c-2.6.patched
--- loop-aes.orig/loop.c-2.6.patched	2009-02-22 14:37:09.000000000 +0000
+++ loop-aes/loop.c-2.6.patched	2009-03-24 18:40:42.000000000 +0000
@@ -1654,7 +1654,7 @@
 	int err;
 	struct loop_func_table *xfer = NULL;
 
-	if (lo-&gt;lo_encrypt_key_size &amp;&amp; lo-&gt;lo_key_owner != current-&gt;uid &amp;&amp;
+	if (lo-&gt;lo_encrypt_key_size &amp;&amp; lo-&gt;lo_key_owner != current-&gt;cred-&gt;uid &amp;&amp;
 	    !capable(CAP_SYS_ADMIN))
 		return -EPERM;
 	if ((unsigned int) info-&gt;lo_encrypt_key_size &gt; LO_KEY_SIZE)
@@ -1710,7 +1710,7 @@
 	if (info-&gt;lo_encrypt_key_size) {
 		memcpy(lo-&gt;lo_encrypt_key, info-&gt;lo_encrypt_key,
 		       info-&gt;lo_encrypt_key_size);
-		lo-&gt;lo_key_owner = current-&gt;uid;
+		lo-&gt;lo_key_owner = current-&gt;cred-&gt;uid;
 	}	
 
 	lo-&gt;lo_queue-&gt;make_request_fn = loop_make_request_real;
diff -Naur loop-aes.orig/loop_serpent.c loop-aes/loop_serpent.c
--- loop-aes.orig/loop_serpent.c	2009-02-22 14:37:09.000000000 +0000
+++ loop-aes/loop_serpent.c	2009-03-24 18:46:56.000000000 +0000
@@ -1117,7 +1117,7 @@
     extern void md5_transform_CPUbyteorder_C(u_int32_t *, u_int32_t const *);
 
 #if LINUX_VERSION_CODE &gt;= 0x20200
-    if(lo-&gt;lo_key_owner != current-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
+    if(lo-&gt;lo_key_owner != current-&gt;cred-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
         return -EPERM;
 #endif
 
diff -Naur loop-aes.orig/loop_twofish.c loop-aes/loop_twofish.c
--- loop-aes.orig/loop_twofish.c	2009-02-22 14:37:09.000000000 +0000
+++ loop-aes/loop_twofish.c	2009-03-24 18:47:16.000000000 +0000
@@ -515,7 +515,7 @@
     extern void md5_transform_CPUbyteorder_C(u_int32_t *, u_int32_t const *);
 
 #if LINUX_VERSION_CODE &gt;= 0x20200
-    if(lo-&gt;lo_key_owner != current-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
+    if(lo-&gt;lo_key_owner != current-&gt;cred-&gt;uid &amp;&amp; !capable(CAP_SYS_ADMIN))
         return -EPERM;
 #endif
 

--===============1092215817==--


]