From: Ben Gras Date: Tue, 20 Sep 2005 12:24:19 +0000 (+0000) Subject: Enforce system call bitmask X-Git-Tag: v3.1.0~48 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=1d0852bcd4f898fe66e97289378d131ea37a59a2;p=minix.git Enforce system call bitmask --- diff --git a/kernel/system.c b/kernel/system.c index 132cd157b..5019dd94e 100755 --- a/kernel/system.c +++ b/kernel/system.c @@ -78,8 +78,7 @@ PUBLIC void sys_task() if (! (priv(caller_ptr)->s_call_mask & (1<= NR_SYS_CALLS) { /* check call number */ + } else if (call_nr >= NR_SYS_CALLS) { /* check call number */ kprintf("SYSTEM: illegal request %d from %d.\n", call_nr,m.m_source); result = EBADREQUEST; /* illegal message type */ }