Same privillege protection

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
osnby

Same privillege protection

Post by osnby »

How to perform protection (i386+,pmode) between tasks(segments) of the same privillege level?

[attachment deleted by admin]
The_Legend

Re: Same privillege protection

Post by The_Legend »

Well for different task, keeps memory regions from one task out of the address space of a different task with the help of paging.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Same privillege protection

Post by Pype.Clicker »

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 ;)
Post Reply