Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2007 15:03:07 +0100
From:      "Thijs Eilander" <eilander@paranoid.nl>
To:        "'Andrew N. Below'" <defan@zenon.net>, <freebsd-hackers@freebsd.org>
Subject:   RE: how to deny reading of several sysctls (for a set of uids, f.e.)
Message-ID:  <20070124142022.C4FEE13C505@mx1.freebsd.org>
In-Reply-To: <web-17517891@mp.zenon.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> Is there a documented possibility to use syscalls _inside_
> kernel code?
> In other words, I need to call the function located in
> loadable kernel object from kernel, doesn't matter how
> this would be done (syscall, etc).


Hi Andrew,

You can redirect syscalls to another function with loadable kernel modules.


Some documentation/examples you might want to read first:

/usr/share/examples/kld
http://www.r4k.net/mod/fbsdfun.html
http://packetstormsecurity.org/papers/unix/bsdkern.htm
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-
kld.html



With best regards,

Thijs Eilander







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070124142022.C4FEE13C505>