[PATCH] LSM: add missing hook to do_compat_readv_writev()
authorJames Morris <jmorris@namei.org>
Wed, 26 Apr 2006 06:45:03 +0000 (02:45 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 26 Apr 2006 14:52:21 +0000 (07:52 -0700)
commite7edf9cdeddc0cff125e8e658216efb2ff2b2219
tree4a7c5c915a5d44a14f32261ada050021d91e3e56
parenta090d9132c1e53e3517111123680c15afb25c0a4
[PATCH] LSM: add missing hook to do_compat_readv_writev()

This patch addresses a flaw in LSM, where there is no mediation of readv()
and writev() in for 32-bit compatible apps using a 64-bit kernel.

This bug was discovered and fixed initially in the native readv/writev
code [1], but was not fixed in the compat code.  Thanks to Al for spotting
this one.

  [1] http://lwn.net/Articles/154282/

Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/compat.c