LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 1
Memory Protection


Hi,
How would I demonstrate that memory resources allocated to one user or process are protected from access by another user or process?
JayPas
 
Old 07-07-2010, 06:17 AM   #2
imagine_me2
Member
 
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.

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

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
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, 11:40 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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



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 01:53 AM
KDE: memory protection applet/widget? amoebios Linux - General 3 06-10-2009 12:41 AM
"Memory Protection Error" in the BSDs Bill_Hwy *BSD 2 02-24-2008 11:35 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
linux bad memory protection erikwebb Linux - Software 8 10-10-2004 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 AM.

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