--- In "j.chitte" <> wrote:
>
> hi,
>
> I am setting up a simple web interface to control some IO on a 7250.
>
> The IO control is loosely based on adc_logger ( thanks Jim ;) )
> though it has evolved a long way from that now.
>
> I have commands and various args working as I require from a root
> command line but calling them from apache fails since apache does not
> have access to access the IO memory.
>
> This is all as it should be but I would like some suggestions on a
> safe way to get this senario to work.
>
> I would eventually like to be able to access this facility from
> outside (via a password protected page) so I would like a reasonably
> secure strategy.
>
> Thanks for any advice.
>
> /js/
>
Hi js,
Maybe you would consider using shared memory and set the permissions
so Apache has access - the shared memory permissions allow granularity
of R/W. You may have to copy the IO memory to your new shared memory
and you may have to use locking if your data values are bigger than
the data size used in the copy. You have to have a way to let Apache
know what the shared memory segment identifier is and access it at the
right time.
I've done quite a bit with shared memory and it has worked well... I
just haven't tried the tightening the permissions yet (I've always
left mine wide open since I've not networked the application yet).
I used this for documentation:
http://www.advancedlinuxprogramming.com/alp-folder
Specifically, the IPC chapter:
http://www.advancedlinuxprogramming.com/alp-folder/alp-ch05-ipc.pdf
Let me know how this works out for you since, in the future, I'll need
to do something like what you're trying to do.
----
Andy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|