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

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