]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/kmod.c
[PATCH] namespaces: utsname: implement utsname namespaces
[karo-tx-linux.git] / kernel / kmod.c
index 5c63c53014a986f53149019890a2743f236d493b..f8121b95183f3c58502e1cacf6b25c1285ebecc3 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/mount.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/resource.h>
 #include <asm/uaccess.h>
 
 extern int max_threads;
@@ -158,6 +159,9 @@ static int ____call_usermodehelper(void *data)
                FD_SET(0, fdt->open_fds);
                FD_CLR(0, fdt->close_on_exec);
                spin_unlock(&f->file_lock);
+
+               /* and disallow core files too */
+               current->signal->rlim[RLIMIT_CORE] = (struct rlimit){0, 0};
        }
 
        /* We can run anywhere, unlike our parent keventd(). */