patch-2.1.111 linux/kernel/kmod.c
Next file: linux/kernel/ksyms.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Fri Jul 24 11:18:24 1998
-  Orig file: 
v2.1.110/linux/kernel/kmod.c
-  Orig date: 
Thu Jul 16 18:09:30 1998
diff -u --recursive --new-file v2.1.110/linux/kernel/kmod.c linux/kernel/kmod.c
@@ -67,6 +67,9 @@
 		if (current->files->fd[i]) close(i);
 	}
 
+	/* kernel_thread() -> ... -> charge_uid(current, 1) workaround */
+	charge_uid(current, -1);
+
 	/* Give kmod all privileges.. */
 	current->uid = current->euid = current->fsuid = 0;
 	cap_set_full(current->cap_inheritable);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov