From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,b69d377feb5a8a2 X-Google-Attributes: gid10952f,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public From: Simon Gornall Subject: Re: Different UNIX pro's and con's. Date: 1998/09/19 Message-ID: <36036BD9.14E18519@unique-id.com>#1/1 X-Deja-AN: 392666323 Content-Transfer-Encoding: 7bit References: <35F71814.1E0B911C@iakom.com> <35FB108D.F8FEFEBE@home.com> <6ti5t2$lbr$1@Venus.mcs.net> <35FDE10D.3380C3C1@home.com> <6tkqni$m41@web.nmti.com> <36019311.0@news.thefree.net> <6tsafu$4cr$1@camco.celestial.com> <360253C8.BB71898@home.com> <3602837C.5A77@lmt.ens-cachan.fr> <3602C849.C70612C6@llnl.gov> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Unique-ID Software Ltd MIME-Version: 1.0 Newsgroups: comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec,comp.security.unix Matt Knecht wrote: > > Jim Mellander wrote: > >I would be interested in hearing from others about this topic. Without > >some method of ensuring that swapping won't take place between > >identification of the file to be deleted & the actual system call to > >delete the file, cleaning /tmp as root is inherantly insecure. > Hmm. I've never felt the need to try this, but couldn't you (as root) get a process listing (in a loop, until exit condition), calling kill -STOP on all the processes until only a few 'important' processes are running (say all root-owned processes), then do the find & rm, then call kill -CONT on the list of processes you STOPped. Then no user process could get between the find and the rm. Maybe call STOP on cron from within the script as well, to prevent the user spawning new programs in the middle of a long find. Sounds like waaay overkill to me, but possible... ATB, Simon. -- Catapultam habeo! Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam !! (official company policy :-)