LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-22-2006, 06:20 PM   #1
hughug
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
How can a process know if it has access to a given io address range?


My problem is that I want a non-root process to know if it has the right to access a given io address range before actually accessing it. If it does not have this right, a segmentation fault is generated and the program is terminated. I want to handle this case gracefully with an error message but no program termination.

Is there a kernel function to know this? Or, could I trap the segmentation fault?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Time Access for a range of domains Palula Linux - Software 1 03-04-2006 12:45 PM
Per-process address space in x86_64? geezjan Red Hat 1 04-07-2005 04:57 AM
Apache2 Server - not working outside local ip address range Robstro Linux - Networking 3 06-14-2004 05:32 PM
DNAT local address range? MadCactus Linux - Security 5 11-20-2003 09:47 AM
Finding what IP address a process starts Stephanie Linux - General 3 10-31-2002 01:07 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration