Revert "proc: enable writing to /proc/pid/mem"

This reverts commit 198214a7ee.
This commit is contained in:
Dima Zavin 2012-01-19 09:51:07 -08:00
parent a65e28a014
commit dac306d896

View File

@ -891,6 +891,10 @@ static ssize_t mem_read(struct file * file, char __user * buf,
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 @@ static ssize_t mem_write(struct file * file, const char __user *buf,
out_no_task:
return copied;
}
#endif
loff_t mem_lseek(struct file *file, loff_t offset, int orig)
{