generic_file_read access

From: Dominique Fober (fober@grame.fr)
Date: Tue Feb 01 2000 - 03:36:44 EST


Some of the kernel exported symbols allows to acces files (open.c : filp_open, filp_close). However, the 'generic_file_read' function (filemap.c) seems to be restricted to buffers located in user space (access_ok macro)
 (which prevents it from being called by a kernel module).
I would like to know the reason of this restriction which seems to be arbitrary as
bypassing the check don't affect the function behavior.

thanks for your answers
Dominique Fober

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:05 EST