Re: Moving /tmp to tmpfs makes it useful
On Sat, May 26, 2012 at 08:20:46PM +0200, Carlos Alberto Lopez Perez wrote:
> On 26/05/12 19:43, Russ Allbery wrote:
> > Carlos Alberto Lopez Perez <firstname.lastname@example.org> writes:
> >> On 26/05/12 19:13, Russ Allbery wrote:
> >>> I find some of the assertions in this thread confusing. I've been
> >>> using tmpfs /tmp on my laptop for quite some time and have watched
> >>> hour-long movies via the Adobe Flash player and have never noticed any
> >>> unexpected consumption of space in /tmp.
> >>> Are you sure that video streaming via Adobe's Flash player works the
> >>> way that you seem to think it works?
> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666096
> > That bug contains little actual information, not even what software was
> > being used.
> Ok... so you want a prove?
> * Open with iceweasel http://vimeo.com/13726978
> * Ensure that is playing with flashplayer (right click on the movie
> should show the typical dialog that includes "about flashplayer"
> * Now launch:
> watch df -h /tmp/
> * And see how the space used grows.
> *Important*: use "df -h /tmp" NOT "du -hs /tmp", since the flash player
> deletes the file entry from /tmp as soon as it gets the inode allocated.
> I believe this a measure to "prevent" piracy (people ripping the video
> from /tmp)
I hope it isn't, because it's poor "security". It's easy to read the
file from /proc/$pid/fd/$num