Re: how to restrict access of FIFO-pipes to two dedicated
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix questions > Re: how to restrict access of FIFO-pipes to two dedicated




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: how to restrict access of FIFO-pipes to two dedicated  
those who know me have no need of my name


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-18-04 03:42 PM

in comp.unix.questions i read:

>if someone on purpose or by accident accesses the pipe in the meantime
>during my usage, there will be a lack of data, as this pipe is open to
>all usage as long as it "lives".

>I can't believe that there should be no command to restrict the access,

there are no such commands, not even the notion, in a classical unix-ish
system.  some modern systems may have acl's you can apply (though they tend
to be highly system specific) or you can use the classic solution of
removing the file after the reader (gzip) has it open -- neither are atomic
so there is still a period of time which is vulnerable.

an example of the later, which should executed via a single call to the
shell is:

mknod apipe$$ p ; gzip -1 < apipe$$ > apipe$$.gz & rm -f apipe$$

i've used $$ so that the same program running more than one at a time will
not destroy each other's files.  whether that's appropriate you will have
to decide.

--
a signature





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register