Gentoo Archives: gentoo-dev

From: Ned Ludd <solar@g.o>
To: Caleb Tennis <caleb@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] LDFLAGS & KDE ebuild
Date: Fri, 23 Apr 2004 22:20:38
Message-Id: 1082758781.24268.1661.camel@simple
In Reply to: Re: [gentoo-dev] LDFLAGS & KDE ebuild by Caleb Tennis
1 On Fri, 2004-04-23 at 16:43, Caleb Tennis wrote:
2 > > Ned Ludd <solar@g.o> wrote:
3 > > > KDE/QT really needs to be careful with linking. I've done a rather
4 > > > quick audit of ELF RPATH and KDE/QT is keeps RPATH's set to
5 > > > /var/tmp/portage*.
6 > > > This is very bad.. If say a user would do something as silly as
7 > > > symlink /var/tmp and /tmp then complete control of the system could be
8 > > > gained
9 >
10 > Since 3.3.0, I've modified Qt so as not to have RPATH for the uic program.
11 I'm not so sure about that..
12
13 solar@simple solar $ readelf -d /usr/qt/3/lib/libqt-mt.so.3 | grep RPATH
14 0x0000000f (RPATH) Library rpath:
15 [/space/tmp/portage/qt-3.3.1-r1/work/qt-x11-free-3.3.1/lib]
16
17 solar@simple solar $ qpkg -f /usr/qt/3/lib/libqt-mt.so.3
18 x11-libs/qt *
19
20 solar@simple solar $ emerge -pv qt
21 [ebuild R ] x11-libs/qt-3.3.1-r1 -cups -doc -firebird -gif -icc
22 -ipv6 +mysql -nas -odbc +opengl -postgres -sqlite +xinerama +zlib 0 kB
23
24
25 >
26 > It's the only program I was aware of that was getting it set. Do you have
27 > information of more utilities setting it?
28
29 The list is fairly large..
30 Best to test on your own local boxes.
31
32 The packages that are probably most at risk can be listed by
33 preforming the following commands.
34
35 wget http://dev.gentoo.org/~solar/audit/ls.rpath
36 sh ls.rpath | grep tmp
37
38
39 > Caleb
40 >
41 > --
42 > gentoo-dev@g.o mailing list
43 --
44 Ned Ludd <solar@g.o>
45 Gentoo Linux Developer

Attachments

File name MIME type
signature.asc application/pgp-signature