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: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public From: peter@baileynm.com (Peter da Silva) Subject: Re: Secure cleaning of /tmp was Different Unixes pros & cons Date: 1998/09/21 Message-ID: <6u67of$cae@web.nmti.com>#1/1 X-Deja-AN: 393383277 References: <35F71814.1E0B911C@iakom.com> <36068E8D.567E2F02@llnl.gov> <36069B1E.14553C26@llnl.gov> Organization: Bailey Network Management Newsgroups: comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec,comp.security.unix In article <36069B1E.14553C26@llnl.gov>, Jim Mellander wrote: >You're correct. Thank you for clearing that up. However, I have yet to >see a program to clean /tmp that is not vulnerable to race conditions. Sure you have. Any program that changes directory to the victim's before checking it. Once it's changed directory, there's no manipulation with any path under /tmp that will budge it. The cost is a fork() for each unlink(). Take my script and rewrite it in "C", to satisfy you that there's no scripting problems, and bob's your uncle. -- In hoc signo hack, Peter da Silva `-_-' "Milloin halasit viimeksi suttasi?" 'U` "Tell init(8) to lock-n-load, we're goin' zombie slaying!"