Browse Source

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: Stephen Wilson <wilsons@start.ca>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stephen Wilson 14 years ago
parent
commit
198214a7ee
1 changed files with 0 additions and 5 deletions
  1. 0 5
      fs/proc/base.c

+ 0 - 5
fs/proc/base.c

@@ -854,10 +854,6 @@ out_no_task:
 	return ret;
 	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,
 static ssize_t mem_write(struct file * file, const char __user *buf,
 			 size_t count, loff_t *ppos)
 			 size_t count, loff_t *ppos)
 {
 {
@@ -914,7 +910,6 @@ out_task:
 out_no_task:
 out_no_task:
 	return copied;
 	return copied;
 }
 }
-#endif
 
 
 loff_t mem_lseek(struct file *file, loff_t offset, int orig)
 loff_t mem_lseek(struct file *file, loff_t offset, int orig)
 {
 {