Skip to contentSkip to conversation

rm-ing files with open file descriptors

DISCUSSION Horst von Brand 1 participant 1 message Jan 20, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Miquel van Smoorenburg

According to Horst von Brand:

Quoted 4 lines
Quoted 1 line

I now have a flink-test2.txt file. That is pretty cool ;)

This is a possible security risk: The unlinking program thinks the file is forever inaccessible, but it isn't...

Why. If you keep an fd open to it it's accessible anyway, and if you like you can copy it to a new file. Or you could link(2) it beforehand, etc etc

Right. So the "staying around in /proc" is a risk.

Signature · 1 line
Horst von Brand			     http://counter.li.org # 22616