From: Philip Homburg Date: Thu, 13 Jul 2006 14:46:53 +0000 (+0000) Subject: Do not report non-safe sys_sdevio calls when the address is 'SELF' X-Git-Tag: v3.1.3~252 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/addsub.png?a=commitdiff_plain;h=d40007667c3ab787e9027e07c8548b660ad27ac2;p=minix.git Do not report non-safe sys_sdevio calls when the address is 'SELF' --- diff --git a/kernel/system/do_sdevio.c b/kernel/system/do_sdevio.c index 658d81b0e..4d8c9d3d3 100644 --- a/kernel/system/do_sdevio.c +++ b/kernel/system/do_sdevio.c @@ -28,13 +28,16 @@ register message *m_ptr; /* pointer to request message */ phys_bytes phys_buf; int req_type, req_dir; - if ((m_ptr->DIO_REQUEST & _DIO_SAFEMASK) != _DIO_SAFE) + /* Allow safe copies and accesses to SELF */ + if ((m_ptr->DIO_REQUEST & _DIO_SAFEMASK) != _DIO_SAFE && + proc_nr_e != SELF) { static int first= 1; if (first) { first= 0; - kprintf("do_sdevio: for %d\n", m_ptr->m_source); + kprintf("do_sdevio: for %d, req %d\n", + m_ptr->m_source, m_ptr->DIO_REQUEST); } }