Messages in this thread | | | Date | Tue, 23 Mar 1999 12:11:09 -0500 | From | Arvind Sankar <> | Subject | Re: [RFC] Rights for hardlinks |
| |
On Tue, Mar 23, 1999 at 11:58:14AM -0500, Alexander Viro wrote: > > get around the linking would be to first create a 700 directory in /tmp and > > export TMPDIR=/tmp/foo. This requires trickery in your .profile to find > > a suitable foo. > > Or you are not keeping /tmp on the same filesystem as root (*good* idea, > especially if you have a NetRape installed on the system and lusers > knowing about said FPOS) and regulary remove all old files from /tmp (also > needed, normally done from crontab via reasonably frequent check for the > amount of space remaining there).
Yes, /tmp _should_ be a separate partition on any decent multi-user system. Point taken...
As a general feature, however, is it reasonable to add a S_ITMP flag to creat(2) to create temp files that do not have associated directory entries? i.e. the filesystem just allocates an inode and returns it, with the file being deleted on close. We save on having to carefully find a unique filename for the tempfile, when we're just going to unlink the thing anyway. Of course this doesn't do anything for shell scripts.
-- arvind
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |