From: Stephen Wilson Date: Sun, 13 Mar 2011 19:49:21 +0000 (-0400) Subject: proc: disable mem_write after exec X-Git-Tag: v2.6.39-rc1~99^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26947f8c8f9598209001cdcd31bb2162a2e54691;p=pandora-kernel.git proc: disable mem_write after exec This change makes mem_write() observe the same constraints as mem_read(). This is particularly important for mem_write as an accidental leak of the fd across an exec could result in arbitrary modification of the target process' memory. IOW, /proc/pid/mem is implicitly close-on-exec. Signed-off-by: Stephen Wilson Signed-off-by: Al Viro --- Reading git-diff-tree failed