[PATCH] kmod.c, 2.4.0-test6 pre1

From: Jeffrey Fielding (JJProg@cyberbury.net)
Date: Tue Aug 01 2000 - 07:24:06 EST


Sorry if you already got this, but my last two messages on this subject
were kind of vague. The problem is that on line 111 of kmod.c, it passes
an incompatible pointer (current) to free_uid (free_uid expects a
pointer to a user_struct, not a task_struct). I changed this to
free_uid(current->user) and everything is running smoothly. My patch is
included below.

Jeffrey Fielding
JJProg@cyberbury.net

--- linux.orig/kernel/kmod.c Sat Jul 22 10:42:06 2000
+++ linux/kernel/kmod.c Tue Aug 1 00:34:21 2000
@@ -108,7 +108,7 @@
        }

        /* Drop the "current user" thing */
- free_uid(current);
+ free_uid(current->user);

        /* Give kmod all effective privileges.. */
        current->uid = current->euid = current->fsuid = 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:05 EST