Hi all,

I have unresolved problem with accessing RTL resources as non-root.

The main RTL application runs from root level, but the configuration
application has to be run from cgi-bin script. I want to make
configuration accessible from web browser and config app sends
parameters to RT via FIFOs.

The config application is placed in /bin and is called from CGI
script.

When it executes it tries to open two FIFOs:
open( "/dev/rtf1", O_RDONLY );
open( "/dev/rtf2", O_WRONLY );
But only read-only FIFO opens when called from cgi-bin (ie. as
non-root)

When config app is called by root all works normal.

Anyone can help?

And more general question: How can I use RT resources as non-root?
I mean I/O ports (ioperm() doesn't work), shared memory, FIFO-s.

Pawel








Best regards,
 Pawel                          mailto:[EMAIL PROTECTED]


--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to