Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 198214a7 authored by Stephen Wilson's avatar Stephen Wilson Committed by Al Viro
Browse files

proc: enable writing to /proc/pid/mem



With recent changes there is no longer a security hazard with writing to
/proc/pid/mem.  Remove the #ifdef.

Signed-off-by: default avatarStephen Wilson <wilsons@start.ca>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8b0db9db
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -854,10 +854,6 @@ 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)
{
@@ -914,7 +910,6 @@ 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)
{