OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 4:38 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Same privillege protection
PostPosted: Fri Apr 05, 2002 10:50 pm 
How to perform protection (i386+,pmode) between tasks(segments) of the same privillege level?

[attachment deleted by admin]


Top
  
 
 Post subject: Re: Same privillege protection
PostPosted: Sat Apr 06, 2002 2:21 am 
Well for different task, keeps memory regions from one task out of the address space of a different task with the help of paging.


Top
  
 
 Post subject: Re:Same privillege protection
PostPosted: Fri Apr 26, 2002 11:45 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
A possible advanced trick from my wizard-bag (might not work in every situation, though):

  • have a supervisor component that is the one to choose which low-level component is active at a time
  • when giving the access to one of these components, set its descriptor present bit on, leave other descriptors with present bit off.
  • On context switchings between sub-tasks, toggle access bits ...

Now, this has a drawback : the supervisor component can virtually write anything to the table... potentially a protection flaw if not at DPL0 -- or you might have a system call for asking a trusted component to do the "present bit" switch for you ...

Now, this is a never-seen-anywhere-else-and-never-tried idea of mine ... so be wise when using it ;)

_________________
Image May the source be with you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group