]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] aio syscalls are not checked by lsm
authorKostik Belousov <konstantin.belousov@zoral.com.ua>
Sun, 23 Oct 2005 19:57:13 +0000 (12:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 23 Oct 2005 23:38:38 +0000 (16:38 -0700)
commitff2999955759f53cf68565db062eee16a5e6d232
tree68daf47f292ef79987f208db8f4d2dabfec7fb57
parentae049064a6daa19ccf607a709053be8c41876f56
[PATCH] aio syscalls are not checked by lsm

Another case of missing call to security_file_permission: aio functions
(namely, io_submit) does not check credentials with security modules.

Below is the simple patch to the problem.  It seems that it is enough to
check for rights at the request submission time.

Signed-off-by: Kostik Belousov <kostikbel@gmail.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c