emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing.el PS preview creates world-readable files in /tmp


From: Vinicius Jose Latorre
Subject: Re: printing.el PS preview creates world-readable files in /tmp
Date: Sat, 13 Nov 2004 22:52:08 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927

Hi Glenn,


I've just updated printing (v 6.8.3) in the Emacs CVS.

The version 6.8.3 now handles file permission bits (see pr-file-modes option). The pr-file-modes default value is 0600, that is, only the owner session have
permissions to handle the newly created files by printing package.


Thanks for your report,


Vinicius


Glenn Morris wrote:

Well, actually it creates pr-ps-temp-file with whatever the default
mask settings are; but I think it should be more restrictive (or use a
private subdirectory in /tmp like the emacs server does).


Example:

umask 022
echo private > foo.txt
chmod 600 foo.txt

emacs -q --no-site-file foo.txt
(require 'printing)
(pr-ps-buffer-preview 1)


This creates /tmp/prspool.ps (a file which remains after the
previewing gv and indeed emacs has exited) as world-readable.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]