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: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,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: insom@galaxy.ucr.edu (Chris Ulrich) Subject: Re: Different UNIX pro's and con's. Date: 1998/09/21 Message-ID: <6u5v9e$f0i$1@pravda.ucr.edu>#1/1 X-Deja-AN: 393352790 References: <35F71814.1E0B911C@iakom.com> <3602C849.C70612C6@llnl.gov> <360688CC.45AA59CA@llnl.gov> Organization: University of California, Riverside Newsgroups: comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec,comp.security.unix X-Newsposter: Pnews 4.0-test50 (13 Dec 96) Why not just turn the sticky bit off, run the /tmp sweeper as a normal UID, and then set the sticky bit after the sweeper runs? Then the badguy can delete anything in /tmp, but they can't make root delete random files anywhere on the filesystem. In article <360688CC.45AA59CA@llnl.gov>, Jim Mellander wrote: > >Well, I checked the source code to tmpwatch - there is a window (albeit >tiny) where someone could slip a symlink in place of a regular file. As >I stated originally, unless you can be entirely sure that you won't swap >between deciding to delete a file, and the actual system call to delete >the file, there is an insecurity. > >tmpwatch is interesting however - it stats the directory twice to make >sure that it isn't being changed and aborts with an error. A hacker >would have to come in at exactly the right time to avoide triggering an >alarm.