Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91617 - vte's gnome-pty-helper has lazy bindings and is setuid (x11-libs/vte)
Summary: vte's gnome-pty-helper has lazy bindings and is setuid (x11-libs/vte)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 70956 (view as bug list)
Depends on:
Blocks: 95548
  Show dependency tree
 
Reported: 2005-05-05 14:23 UTC by Seemant Kulleen (RETIRED)
Modified: 2005-07-20 14:53 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to the vte source (vte-lazybindings.patch,419 bytes, text/plain)
2005-05-05 14:24 UTC, Seemant Kulleen (RETIRED)
Details
Patch to vte-0.11.12.ebuild (vte-0.11.12.ebuild.patch,702 bytes, text/plain)
2005-05-05 14:25 UTC, Seemant Kulleen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seemant Kulleen (RETIRED) gentoo-dev 2005-05-05 14:23:35 UTC
Hi Guys, the /usr/libexec/gnome-pty-helper binary is setuid and compiled/linked with lazy bindings.  I've attached here a patch to the ebuild and a patch to the sources to fix this issue (adding -Wl,-z,now to the ldflags for gnome-pty-helper).

It's not the best source patch, but eh.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-05-05 14:24:41 UTC
Created attachment 58157 [details]
Patch to the vte source

Patch to the vte source
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-05-05 14:25:34 UTC
Created attachment 58158 [details]
Patch to vte-0.11.12.ebuild

Patch to vte-0.11.12.ebuild
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2005-05-30 01:32:45 UTC
*** Bug 70956 has been marked as a duplicate of this bug. ***
Comment 4 Leonardo Boshell (RETIRED) gentoo-dev 2005-05-30 01:36:07 UTC
I don't see anything wrong with this, but then again, I don't really understand
what's going on. Could you briefly explain what is the problem and how do those
LDFLAGS resolve it, please? Thanks.. :)
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-06-01 08:54:20 UTC
From man ld(1):

           now When generating an executable or shared library, mark it to tell
the  dynamic
               linker to resolve all symbols when the program is started, or
when the shared
               library is linked to using dlopen, instead of deferring function
call resolu-
               tion to the point when the function is first called.

I'm not sure how this makes the program more secure.  Afterall, if someone can
slip in a different library, they can do it at invocation time as well as later
on in the running of the program.  gnome-pty-helper doesn't seem to be a
particularly long lived process.  I guess the poster should explain in more detail.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2005-07-20 04:36:59 UTC
hang on, let me ask solar or vapier to explain this issue more clearly so I
don't screw up the explanation.
Comment 7 John Robinson 2005-07-20 07:56:25 UTC
Yes guys please do, my report of the QA notice (bug #70956) got ignored with a
"well portage shouldn't complain" response. I suspect it's because a running
binary could become compromised while running (in a way it couldn't be before
running, e.g. by a buffer overrun) and therefore alternate libraries might be
made to be used before linking is completed, but that would directly contradict
what Daniel Gryniewicz said, so I don't really know :-)
Comment 8 Leonardo Boshell (RETIRED) gentoo-dev 2005-07-20 14:53:11 UTC
Fixed in vte-0.11.13-r2. Thanks for the help :).