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: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public From: peter@baileynm.com (Peter da Silva) Subject: Re: Secure cleaning of /tmp was Different Unixes pros & cons Date: 1998/09/23 Message-ID: <6ubvql$clj@web.nmti.com>#1/1 X-Deja-AN: 394181222 References: <35F71814.1E0B911C@iakom.com> <51zN1.54$LN.897820@burlma1-snr1.gtei.net> <6u6gie$fgk@web.nmti.com> <6ubs6f$jk5$1@pegasus.csx.cam.ac.uk> Organization: Bailey Network Management Newsgroups: comp.sys.dec,comp.security.unix In article <6ubs6f$jk5$1@pegasus.csx.cam.ac.uk>, Peter Benie wrote: >These techniques still don't identify which files are genuinely >finished with. (Every so often, users ask for files in /tmp to be >recovered from backups!) That is a policy issue. Really. >Nor do they delete structured groups of files >together - you can't do that under Unix without the cooperation of the >program that created them. Since a fully correct /tmp cleaning program >is impossible under Unix, it's not worth spending much effort trying >to make one. Since it's impossible to live forever it's not worth spending much effort eating. *shrug* You can always do better, and you can certainly prevent pretty much all the credible exploits. >I'm not too keen on variable symlinks, especially for /tmp. Neither am I, personally, but the situation isn't that dire for properly written setuid programs... they require intimate knowledge of dangerous environment variables anyway, and should probably start off with code that rebuilds a known safe environment from scratch. (see also LD_LIBRARY_PATH) -- In hoc signo hack, Peter da Silva `-_-' "Milloin halasit viimeksi suttasi?" 'U` "Tell init(8) to lock-n-load, we're goin' zombie slaying!"