unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Marshall, Simon" <Simon.Marshall@misys.com>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: Chong Yidong <cyd@stupidchicken.com>,
	mwelinder@gmail.com, Eli Zaretskii <eliz@gnu.org>,
	emacs-devel@gnu.org
Subject: RE: [mwelinder@gmail.com: Emacs security bug]
Date: Mon, 12 May 2008 17:37:20 +0100	[thread overview]
Message-ID: <6EE216E1AA959543A555C60FF34FB767041E7950@maileube01.misys.global.ad> (raw)
In-Reply-To: jwvskwnoat0.fsf-monnier+emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

> I see no point in investing any significant time to try and fix
> this problem.

Phew.

> > Probably the most reasonable fix, in the circumstances, is to make
> > fast-lock-cache-directories a risky local variable and remove "."
from
> > its default value?
> 
> Sounds OK.

Attached is a patch.  Simon.



 "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP. For a list of Misys group operating companies please go to http://www.misys.com/html/about_us/group_operating_companies/. This email and any attachments have been scanned for known viruses using multiple scanners. 
 
We believe that this email and any attachments are virus free, however the recipient must take full responsibility for virus checking. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

[-- Attachment #2: fast-lock.diff --]
[-- Type: application/octet-stream, Size: 2124 bytes --]

*** fast-lock.el.~1~	Thu Jan 10 12:15:40 2008
--- fast-lock.el	Mon May 12 17:30:28 2008
***************
*** 286,292 ****
  				      (integer :tag "size")))))
    :group 'fast-lock)
  
! (defcustom fast-lock-cache-directories '("." "~/.emacs-flc")
  ; - `internal', keep each file's Font Lock cache file in the same file.
  ; - `external', keep each file's Font Lock cache file in the same directory.
    "*Directories in which Font Lock cache files are saved and read.
--- 286,292 ----
  				      (integer :tag "size")))))
    :group 'fast-lock)
  
! (defcustom fast-lock-cache-directories '("~/.emacs-flc")
  ; - `internal', keep each file's Font Lock cache file in the same file.
  ; - `external', keep each file's Font Lock cache file in the same directory.
    "*Directories in which Font Lock cache files are saved and read.
***************
*** 304,315 ****
   ((\"^/your/true/home/directory/\" . \".\") \"~/.emacs-flc\")
  
  would cause a file's current directory to be used if the file is under your
! home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'."
    :type '(repeat (radio (directory :tag "directory")
  			(cons :tag "Matching"
  			      (regexp :tag "regexp")
  			      (directory :tag "directory"))))
    :group 'fast-lock)
  
  (defcustom fast-lock-save-events '(kill-buffer kill-emacs)
    "*Events under which caches will be saved.
--- 304,318 ----
   ((\"^/your/true/home/directory/\" . \".\") \"~/.emacs-flc\")
  
  would cause a file's current directory to be used if the file is under your
! home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'.
! For security reasons, it is not advisable to use the file's current directory
! to avoid the possibility of using the cache of another user."
    :type '(repeat (radio (directory :tag "directory")
  			(cons :tag "Matching"
  			      (regexp :tag "regexp")
  			      (directory :tag "directory"))))
    :group 'fast-lock)
+ (put 'fast-lock-cache-directories 'risky-local-variable t)
  
  (defcustom fast-lock-save-events '(kill-buffer kill-emacs)
    "*Events under which caches will be saved.

[-- Attachment #3: ChangeLog.diff --]
[-- Type: application/octet-stream, Size: 389 bytes --]

*** ChangeLog~	Wed Mar 26 13:32:44 2008
--- ChangeLog	Mon May 12 17:33:38 2008
***************
*** 1,3 ****
--- 1,8 ----
+ 2008-05-12  Simon Marshall  <simon@gnu.org>
+ 
+ 	* fast-lock.el (fast-lock-cache-directories): Remove "." from its
+ 	default value and give it the risky-local-variable property.
+ 
  2008-03-26  Chong Yidong  <cyd@stupidchicken.com>
  
  	* Version 22.2 released.

  reply	other threads:[~2008-05-12 16:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 21:44 [mwelinder@gmail.com: Emacs security bug] Eli Zaretskii
2008-05-09 23:19 ` Chong Yidong
2008-05-10  7:40   ` Eli Zaretskii
2008-05-10  8:28     ` Christian Faulhammer
2008-05-10 14:50 ` Chong Yidong
2008-05-10 15:16   ` Eli Zaretskii
2008-05-12 10:10   ` Marshall, Simon
2008-05-12 14:31     ` Stefan Monnier
2008-05-12 16:37       ` Marshall, Simon [this message]
2008-05-12 17:30         ` Stefan Monnier
2008-05-12 20:14         ` Ulrich Mueller
2008-05-12 20:37           ` Ulrich Mueller
2008-05-13  9:00             ` Marshall, Simon
2008-05-14 14:41               ` Ulrich Mueller
2008-05-14 14:52                 ` Marshall, Simon
2008-05-12 20:45           ` Stefan Monnier
2008-05-12 14:36     ` Florian Weimer
2008-05-12 16:21       ` Marshall, Simon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6EE216E1AA959543A555C60FF34FB767041E7950@maileube01.misys.global.ad \
    --to=simon.marshall@misys.com \
    --cc=cyd@stupidchicken.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=mwelinder@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).