]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Require mmap handler for a.out executables
authorEugene Teo <eteo@redhat.com>
Fri, 29 Sep 2006 08:59:33 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:08 +0000 (09:18 -0700)
commit1b1f09390021bc644d028596f72053bf583d1884
tree235e366e3744cdf76381d9e8a709d7564dde94e0
parent8754b88e6f6634eebebf960e919ebf721c56162c
[PATCH] Require mmap handler for a.out executables

Files supported by fs/proc/base.c, i.e.  /proc/<pid>/*, are not capable of
meeting the validity checks in ELF load_elf_*() handling because they have
no mmap handler which is required by ELF.  In order to stop a.out
executables being used as part of an exploit attack against /proc-related
vulnerabilities, we make a.out executables depend on ->mmap() existing.

Signed-off-by: Eugene Teo <eteo@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/binfmt_aout.c