From: Dima Zavin Date: Thu, 19 Jan 2012 17:51:07 +0000 (-0800) Subject: Revert "proc: enable writing to /proc/pid/mem" X-Git-Tag: firefly_0821_release~7613^2~197 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dac306d896642f3dfcd878ab6a0a5b8c123722f3;p=firefly-linux-kernel-4.4.55.git Revert "proc: enable writing to /proc/pid/mem" This reverts commit 198214a7ee50375fa71a65e518341980cfd4b2f0. --- diff --git a/fs/proc/base.c b/fs/proc/base.c index efb304854b74..1a8d756021f2 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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) {