Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1 view
Skip to first unread message

Marco Pessotto

unread,
Apr 11, 2008, 1:53:34 PM4/11/08
to
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

0 new messages