Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Testing for read() failures on different platforms

by hbo (Monk)
on Jul 27, 2004 at 15:29 UTC ( #377766=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Testing for read() failures on different platforms
in thread Testing for read() failures on different platforms

In a similar way, removing read permissions on a file won't prevent reading of the contents through an already open file handle. That may seem insecure, but the property can be used to enhance security. If a process needs to read from or write to a protected resource, it can start life as root, open the resource appropriately and then drop privileges. The now unprivileged process still has privileged access through the open file handle.

"Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers


Comment on Re^3: Testing for read() failures on different platforms

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://377766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-04-20 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls