[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: many packages write to `temporary-file-directory' insecurely
From: |
Richard Stallman |
Subject: |
Re: many packages write to `temporary-file-directory' insecurely |
Date: |
Fri, 8 Mar 2002 02:08:06 -0700 (MST) |
+ (choices (list "/var/games/emacs" "/var/games"
+ temporary-file-directory)))
+ (while (and (not ret) (setq choice (car choices)))
+ (when (and (eq (car (file-attributes choice)) t)
+ (file-writable-p choice))
+ (setq ret choice))
The game-state-directory should not be world-writable. If it is
world-writable, it will have the same security problem as /tmp, except
worse if it does not have the sticky bit--make-temp-file won't
be reliable in that case.
One way to solve this problem is by having Emacs installation create
the desired files under /var/games/emacs, make them world-writable,
and make /var/games/emacs read-only.
Does anyone see a better way?
- Re: many packages write to `temporary-file-directory' insecurely, (continued)
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/04
- Re: many packages write to `temporary-file-directory' insecurely, Andreas Schwab, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Stefan Monnier, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/06
- Re: many packages write to `temporary-file-directory' insecurely, Stefan Monnier, 2002/03/06
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/06
- Re: many packages write to `temporary-file-directory' insecurely, Eli Zaretskii, 2002/03/07
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/08
- Re: many packages write to `temporary-file-directory' insecurely,
Richard Stallman <=
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/10
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/11
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/17
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/18
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/18
- Re: many packages write to `temporary-file-directory' insecurely, Steve Kemp, 2002/03/18
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/18
- Re: many packages write to `temporary-file-directory' insecurely, Pavel JanÃk, 2002/03/19
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/20
- Re: many packages write to `temporary-file-directory' insecurely, Colin Walters, 2002/03/27