mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
Revert "proc: enable writing to /proc/pid/mem"
This reverts commit 198214a7ee.
This commit is contained in:
parent
a65e28a014
commit
dac306d896
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user