all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wrong permission of PREFIX/share/emacs/22.2/lisp and PREFIX/share/emacs/22.2/etc
@ 2008-04-11 20:50 Marco Pessotto
  0 siblings, 0 replies; only message in thread
From: Marco Pessotto @ 2008-04-11 20:50 UTC (permalink / raw)
  To: gnu-emacs-bug

Hi!

I've installed emacs 22.2 with these steps: (from $(history) )

./configure --prefix=/usr --sysconfdir=/etc --infodir=/usr/info 
--mandir=/usr/man --with-xpm --with-jpeg --with-tiff --with-gif 
--with-png --with-gtk --with-x

make
make install DESTDIR=/tmp/pkg-emacs

(removed the /usr/info/dir, gzipped the infos, etc. etc., but no chmod)

makepkg -l y -c n ../emacs-22.2-i686-marco1.tgz

(I'm on Slackware)

and

upgradepkg emacs-22.2-i686-marco1.tgz

This is what I get:
19:46] root@universe:/tmp/emacs-22.2# ls -l /usr/share/emacs/22.2/
totale 36

drwxrwxrwx  2 root root  4096 2008-04-11 19:30 etc
drwxr-xr-x  4 root root  4096 2008-04-09 16:17 leim
drwxrwxrwx 20 root root 24576 2008-04-11 19:30 lisp
drwxr-xr-x  2 root root  4096 2008-04-09 16:17 site-lisp

I think this is security hole.

I've tested this again compiling as user and then installing as root:
[19:49] root@universe:/tmp/provissima-emacs/usr/share/emacs/22.2# ls -l
totale 40
drwxr-xr-x  5 sumatra users  4096 2008-04-11 19:49 etc
drwxr-xr-x  4 sumatra root   4096 2008-04-11 19:49 leim
drwxr-xr-x 20 sumatra users 28672 2008-04-11 19:49 lisp
drwxr-xr-x  2 root    root   4096 2008-04-11 19:49 site-lisp

What is going wrong?

-Marco Pessotto




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-11 20:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 20:50 Wrong permission of PREFIX/share/emacs/22.2/lisp and PREFIX/share/emacs/22.2/etc Marco Pessotto

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.