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

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

Wrong permission of PREFIX/share/emacs/22.2/lisp and PREFIX/share/emacs/


From: Marco Pessotto
Subject: Wrong permission of PREFIX/share/emacs/22.2/lisp and PREFIX/share/emacs/22.2/etc
Date: Fri, 11 Apr 2008 22:50:15 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

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] address@hidden:/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] address@hidden:/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




reply via email to

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