Date: Wed, 24 Jan 2007 16:23:03 +0300 From: "Andrew N. Below" <defan@zenon.net> To: Max Laier <max@love2party.net>,freebsd-hackers@freebsd.org Subject: Re: how to deny reading of several sysctls (for a set of uids, f.e.) Message-ID: <web-17517891@mp.zenon.net> In-Reply-To: <200701231410.25946.max@love2party.net> References: <082f01c73ee3$c6b3f810$970da8c0@jam.zenon.net> <200701231410.25946.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Jan 2007 14:10:19 +0100 Max Laier <max@love2party.net> wrote: [..] > td->td_proc->p_ucred has the user credentials. You >probably want to do > your checks in userland_sysctl() according to the >comment just above. Thanks, it is really what I need. Now I have once more question. I made the kernel object with one check-function and all works fine from userland via syscall(). 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). My goal is to avoid kernel rebuilding each time after function modification. Is it possible? -- Andrew N. Below
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?web-17517891>