Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 03:56:19 -0400
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/man/man7 tuning.7
Message-ID:  <20020528035619.D93657@espresso.q9media.com>
In-Reply-To: <20020528073943.GD77228@daemon.ninth-circle.org>; from asmodai@wxs.nl on Tue, May 28, 2002 at 09:39:43AM %2B0200
References:  <200205280603.g4S63pY24227@freefall.freebsd.org> <20020528032419.C93657@espresso.q9media.com> <20020528073943.GD77228@daemon.ninth-circle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeroen Ruigrok/asmodai <asmodai@wxs.nl> writes:
> -On [20020528 09:30], Mike Barcroft (mike@FreeBSD.org) wrote:
> >If anything, you should change vi not to store semi-permanent data in
> >a temporary directory.  You almost never want to have a temporary
> >directory hanging off a more important partition like / or /var, since
> >users could attack a system by filling /tmp or /var/tmp.  Having
> >multiple temporary partitions is also a nuisance, so I usually
> >symbolicly link all mine together.
> 
> Well, it would not just be vi that needs to be changed.  It affects more
> programs.

I'm only aware of vi; what other software relies on a permanent
temporary directory?  In the case of vi, I think ~/.vi/ would be a far
more suitable location for recoverable files.

> Also, it means hier(7) would need updating.
> 
> What does SUS or some other spec have to say about it btw?  Don't have
> my manuals handy here.

: /tmp A directory made available for applications that need a place
: to create temporary files.  Applications shall be allowed to create
: files in this directory, but shall not assume that such files are
: preserved between invocations of the application.

No other temporary directories exist in POSIX/SUS.

> So, would there be a general consensus to mark /tmp and /var/tmp as
> equal?  If so we can continue with the other points, to note:
> 
> 1)	Update hier(7) with the consensus.
> 2)	Fix tuning(7) and other manual pages with the updated
> 	information.
> 3)	Create a symlink from /var/tmp -> /tmp.
> 4)	Fix any application in the base system to use /var properly,
> 	instead of /var/tmp.
> 
> Did I miss something?

Update <paths.h>, but this probably isn't needed if /var/tmp is a
symbolic link to /tmp.  sysinstall used to create /usr/tmp, but that
was changed to /var/tmp.

I'm interested in hearing what other people think and possibly their
uses for /var/tmp.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020528035619.D93657>