Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 07-07-2010, 06:45 AM   #1
LQ Newbie
Registered: Jul 2010
Posts: 21

Rep: Reputation: 1
Memory Protection

How would I demonstrate that memory resources allocated to one user or process are protected from access by another user or process?
Old 07-07-2010, 07:17 AM   #2
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Rep: Reputation: 22
This is a classic segmentation fault situation.
What you need to use is a type unsafe language like 'C'. Declare an array of say of size 00 and try to access the 101st place. This will give a segmentation fault. But this memory may not be allocated to any other process. Whether or not a memory is allocated to another process your program may not access any other memory location other than what is allocated to it. If you need more memory in run time you have to explicitly ask for it, and its upto the OS that you will be provided or not. Actually this error is due to the fault arising due to inability to calculate proper memory location using segmentation register.

Old 07-07-2010, 08:10 AM   #3
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Originally Posted by jaypas View Post
How would I demonstrate that memory resources allocated to one user or process are protected from access by another user or process?
1) That (and your similar threads) sounds like homework. Don't ask us to do your homework.

2) It also sounds like the typical "prove a negative" problem. I know "demonstrate" is less than "prove", but how much less? You can't prove that there isn't a hole in Linux security. You could look for a hole and fail to find it, but that doesn't prove it isn't there.

No experiment should even be considered a demonstration of such protection. A detailed code review of the relevant parts of the Linux source code could be considered a demonstration of that protection. But I assume you are not looking for a project anywhere near that difficult.
Old 07-08-2010, 12:40 PM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

Please feel free to start a new thread which meets the guidelines

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] General protection fault when writing to video memory in protected mode smeezekitty Programming 6 11-01-2009 02:53 AM
KDE: memory protection applet/widget? amoebios Linux - General 3 06-10-2009 01:41 AM
"Memory Protection Error" in the BSDs Bill_Hwy *BSD 2 02-24-2008 12:35 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 05:05 AM
linux bad memory protection erikwebb Linux - Software 8 10-10-2004 01:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration