LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
Thread Tools
Old 05-22-2006, 07:20 PM   #1
hughug
LQ Newbie
 
Registered: May 2006
Posts: 1
Thanked: 0
How can a process know if it has access to a given io address range?


[Log in to get rid of this advertisement]
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?
hughug is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Squid Time Access for a range of domains Palula Linux - Software 1 03-04-2006 01:45 PM
Per-process address space in x86_64? geezjan Red Hat 1 04-07-2005 05:57 AM
Apache2 Server - not working outside local ip address range Robstro Linux - Networking 3 06-14-2004 06:32 PM
DNAT local address range? MadCactus Linux - Security 5 11-20-2003 10:47 AM
Finding what IP address a process starts Stephanie Linux - General 3 10-31-2002 02:07 PM


All times are GMT -5. The time now is 03:43 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration