Date: Thu, 9 Oct 2003 15:52:21 +0300 From: Samy Al Bahra <samy@kerneled.com> To: earthman <earthman@inbox.ru> Cc: freebsd-hackers@freebsd.org Subject: Re: On-line judgment kernel module Message-ID: <20031009155221.3b29fb82.samy@kerneled.com> In-Reply-To: <1197083983.20031009074645@inbox.ru> References: <1197083983.20031009074645@inbox.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Oct 2003 07:46:45 +0300 earthman <earthman@inbox.ru> wrote: > Now I'm thinking how to do this. > Possibly it would be easy to point p->sv_sysent > to the structure that points sv_prepsyscall > to some function that denies some system calls. > (kill process, make some record in module about > restricted call That would work. If you prefer more granularity you may change individual sysent entries as well to point to your own functions/system calls. > But I don't understand how to cancel syscall > out of those function. Maybe it's possible > to change code parameter to something else. You may return a value (from the system call) that designates an error. Please consult the errno man page for more information. -- +-----------------------------------+ | Samy Al Bahra | samy@kerneled.com | |-----------------------------------| | B3A7 F5BE B2AE 67B1 AC4B | | 0983 956D 1F4A AA54 47CB | |-----------------------------------| | http://www.kerneled.com | +-----------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031009155221.3b29fb82.samy>