Accessing serial port information in privilege restricted directory

This is a discussion on Accessing serial port information in privilege restricted directory within the Linux Security forums, part of the System Security and Security Related category; Hi, I am writing an application that needs to access information stored in files /proc/tty/device/*, but the directory /...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-04-2005
Paul Taylor
 
Posts: n/a
Default Accessing serial port information in privilege restricted directory

Hi,

I am writing an application that needs to access information stored in
files /proc/tty/device/*, but the directory /proc/tty/device only
allows root access. The directory contains files that indicate the serial
ports available for use on the system, both traditional and USB adapter
types.

Has anyone got an idea why the /proc/tty/device directory is restricted
to root? Basically, I'm trying to work out what the best approach to take
with my application, which runs with user privileges.

Thanks,

Paul.

--
Remove _rem_ before replying by email.

Reply With Quote
  #2 (permalink)  
Old 07-05-2005
Paul Taylor
 
Posts: n/a
Default Re: Accessing serial port information in privilege restricted directory

On Mon, 04 Jul 2005 18:54:40 +0100, Paul Taylor wrote:

> Hi,
>
> I am writing an application that needs to access information stored in
> files /proc/tty/device/*, but the directory /proc/tty/device only
> allows root access. The directory contains files that indicate the serial
> ports available for use on the system, both traditional and USB adapter
> types.
>
> Has anyone got an idea why the /proc/tty/device directory is restricted
> to root? Basically, I'm trying to work out what the best approach to take
> with my application, which runs with user privileges.
>


I guess the directory is restricted for similar reasons that the ttySx and
ttyUSBx device nodes are restricted. If an application needs to use a
serial port then the sysadmin needs to make changes to allow serial port
access. I guess the sysadmin would need to make changes in the same vein
to allow a user program to access the files indicating which ports are
available for use.

--
Remove _rem_ before replying by email.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0