projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a65e28a
)
Revert "proc: enable writing to /proc/pid/mem"
author
Dima Zavin
<dima@android.com>
Thu, 19 Jan 2012 17:51:07 +0000
(09:51 -0800)
committer
Dima Zavin
<dima@android.com>
Thu, 19 Jan 2012 18:52:03 +0000
(10:52 -0800)
This reverts commit
198214a7ee50375fa71a65e518341980cfd4b2f0
.
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index efb304854b742e3bfeff3a6f5104b6130311089d..1a8d756021f20fdda3bae0dadb9a2bff1c993601 100644
(file)
--- 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)
{