diff options
author | Dima Zavin <dima@android.com> | 2012-01-19 09:51:07 -0800 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2012-01-19 10:52:03 -0800 |
commit | dac306d896642f3dfcd878ab6a0a5b8c123722f3 (patch) | |
tree | d2d0cb3b7752fd9b0ca811d1430b85c1396515e4 /fs | |
parent | a65e28a0149261776678977962cfa0f90973e1d4 (diff) | |
download | kernel_samsung_tuna-dac306d896642f3dfcd878ab6a0a5b8c123722f3.zip kernel_samsung_tuna-dac306d896642f3dfcd878ab6a0a5b8c123722f3.tar.gz kernel_samsung_tuna-dac306d896642f3dfcd878ab6a0a5b8c123722f3.tar.bz2 |
Revert "proc: enable writing to /proc/pid/mem"
This reverts commit 198214a7ee50375fa71a65e518341980cfd4b2f0.
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index efb3048..1a8d756 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) { |