Revert "proc: enable writing to /proc/pid/mem"
authorDima Zavin <dima@android.com>
Thu, 19 Jan 2012 17:51:07 +0000 (09:51 -0800)
committerDima Zavin <dima@android.com>
Thu, 19 Jan 2012 18:52:03 +0000 (10:52 -0800)
This reverts commit 198214a7ee50375fa71a65e518341980cfd4b2f0.

fs/proc/base.c

index efb304854b742e3bfeff3a6f5104b6130311089d..1a8d756021f20fdda3bae0dadb9a2bff1c993601 100644 (file)
@@ -891,6 +891,10 @@ out_no_task:
        return ret;
 }
 
+#define mem_write NULL
+
+#ifndef mem_write
+/* This is a security hazard */
 static ssize_t mem_write(struct file * file, const char __user *buf,
                         size_t count, loff_t *ppos)
 {
@@ -949,6 +953,7 @@ out_task:
 out_no_task:
        return copied;
 }
+#endif
 
 loff_t mem_lseek(struct file *file, loff_t offset, int orig)
 {