Re: access_ok inside kernelspace

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Tue, 19 Oct 1999 14:04:52 +0200 (CEST)


On Tue, 19 Oct 1999, Tigran Aivazian wrote:

> And example I give is exec_modprobe() doing close(i) when it could just do
> sys_close(i).

well, there could be at least one valid reason, ptrace(). If you want to
make one particular kernel daemon strace-able then the entry trap could be
used. I dont know wether it actually works (looks like raceland), but that
could be one reason. exec_modprobe is executed by a kernel thread (kmod),
so it can be argued that it's a special case.

-- mingo

-
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/