[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#3140: etc/init.d/boot has rm -f bugs



> > Why the hell is this done at boot-up (sorry, but I had a crash and lost
> > a /tmp file that was an editing session, hoo boy). At least keep things
> > in /tmp for 3 days!!!
>
> I agree that things in /tmp should be kept for at least 3 days - but...

It's done at boot up to free some space on the root partition so the
system can boot properly if it paniced due to the root file system being
full.  It's an old fail-safe mechanism.

You probably want to store such files in "/var/tmp" instead of "/tmp".

> > Moreover this is a security bug as indicated in the recent discussion
> > on find and rm.
>
> At the time /etc/init.d/boot is run, there are probably no users logged
> in and trying to exploit the race condition.  So, I don't think this is
> a security bug...

Correct.

                                        Brian
                               ( bcwhite@verisim.com )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.


Reply to: