Google Groups Home
Help | Sign in
IPC restriction handling for user processes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
A. Schabel  
View profile
 More options Jul 25, 8:45 am
Newsgroups: comp.os.minix
From: "A. Schabel" <a_scha...@web.de>
Date: Fri, 25 Jul 2008 05:45:52 -0700 (PDT)
Local: Fri, Jul 25 2008 8:45 am
Subject: IPC restriction handling for user processes
Hi again,

I found the following lines in kernel/proc.c, to regulate the ipc from
userspace into kernel tasks. However, those lines are disabled through
the "#if 0" preprocessor statement.

    #if 0
      if ((iskerneln(src_dst_p) && _function != SENDREC
               && _function != RECEIVE)) {
    #if DEBUG_ENABLE_IPC_WARNINGS
          kprintf("sys_call: trap %d not allowed, caller %d, src_dst %d
\n",
              function, proc_nr(caller_ptr), src_dst);
    #endif
          return(ETRAPDENIED);          /* trap denied by mask or kernel */
      }
    #endif

I am a little irritated about these lines due to two reasons.

1st. why haven't those disabled lines been cropped from the source
code, when
2nd., Jorrit N. Herder rewrote ipc and system call handling in 2005 as
file comments tell, especially as
3rd., these lines seem to be superseded by the introduction of the
"sys_map_t s_ipc_from", "sys_map_t s_ipc_to" and "sys_map_t
s_ipc_sendrec" variables in proc.h

So, can anyone support/refute my assumption, these lines are legacy
and outdated?

Thanks for your ideas,

Alex

---------------------------------------------------------------------
As I'm currently about to port Minix to a research processor platform,
some more questions like this may arise in future...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A. Schabel  
View profile
 More options Aug 11, 5:35 am
Newsgroups: comp.os.minix
From: "A. Schabel" <a_scha...@web.de>
Date: Mon, 11 Aug 2008 02:35:05 -0700 (PDT)
Local: Mon, Aug 11 2008 5:35 am
Subject: Re: IPC restriction handling for user processes
Just to bring my question up again...

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google