<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>114049</bug_id>
          
          <creation_ts>2005-11-30 09:56 0000</creation_ts>
          <short_desc>kde ebuilds installing applications with the setuid bit on fail with FEATURES=&quot;-stricter&quot;</short_desc>
          <delta_ts>2005-12-11 07:00:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>KDE</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <status_whiteboard>kde-base/kdesu done; kde-base/kcheckpass done; kde-base/kdebase done</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>113934</dependson>
    
    <dependson>113937</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-11-30 09:56:29 0000</bug_when>
            <thetext>Because it seems to be a common to many kde ebuilds, I will not file new bugs
for every ebuild but instead list them here. The two separate bugs I already
filed I will leave open.

strip: i686-pc-linux-gnu-strip --strip-unneeded
   usr/kde/3.5/bin/kdesu
   usr/kde/3.5/bin/kdesud

QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS=&apos;-Wl,-z,now&apos; emerge kdesu
LAZY usr/kde/3.5/bin/kdesud


!!! ERROR: kde-base/kdesu-3.5.0 failed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-11-30 10:44:33 0000</bug_when>
            <thetext>QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS=&apos;-Wl,-z,now&apos; emerge kcheckpass
LAZY usr/kde/3.5/bin/kcheckpass


!!! ERROR: kde-base/kcheckpass-3.5.0 failed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-12-05 05:50:44 0000</bug_when>
            <thetext>Is there some documentation on this issue? 
 
It would be easy to add an append-flags to the eclass, but maybe it could be 
better to report it directly upstream, if it really has some impact on 
security? 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-12-08 17:43:21 0000</bug_when>
            <thetext>To report it upstream, I&apos;d suggest to use at least the m4 I started developing 
for Gentoo/ALT that supports also Solaris&apos;s LD (that use the same syntax, btw) 
and the one from MacOSX. 
 
Other than the, the fixes shouldn&apos;t happen unconditionally, I think; I&apos;ve 
patched arts and I&apos;ll see to patch the rest, but I set the right flags from 
the ebuild via the BINDNOW_FLAGS variable using $(bindnow-flags); it does the 
same that the m4 would do if it was used. 
 
If you want to push this upstream, maybe you can try to contact Dirk Mueller.. 
I sure won&apos;t do it :) 
 
Give me time and I&apos;ll see to fix it piece by piece.. but it takes time waiting 
for kdelibs rebuild for example. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-12-09 01:13:14 0000</bug_when>
            <thetext>Let&apos;s start, I&apos;ll use status whiteboard to track changes.. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-12-09 01:46:12 0000</bug_when>
            <thetext>Greg, I&apos;ve committed kde-base/kdebase with the two patches, tested unpack and 
they apply, I don&apos;t have a monolithic setup at hand, tho, so if you can give 
that a try, please then close this bug, thanks :) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-12-10 07:04:49 0000</bug_when>
            <thetext>So I decided to go on and find the rest of setuid stuff. Here we go for kdenetwork:

QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS=&apos;-Wl,-z,now&apos; emerge kdenetwork
LAZY usr/kde/3.5/bin/kppp
LAZY usr/kde/3.5/bin/reslisa
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-12-11 03:05:01 0000</bug_when>
            <thetext>I have now done emerge kde with some ebuild from split and most from monolithic
packages with most USE flags on so most of the setuid programs from KDE itself
(not counting external stuff like amarok) should now be listed here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-12-11 05:28:24 0000</bug_when>
            <thetext>Fixed then.. in the future you might consider not to use stricter anyway, as 
solar said, it&apos;s supposed that most ebuilds does not build with it. While the 
QA is always a good idea, also for support of non-glibc non-uclibc libraries, 
they intend to fix them on libc level, without requiring -znow linking on 
binaries. 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-12-11 07:00:51 0000</bug_when>
            <thetext>Well stricter also catches other stuff, but I can leave the setuid bit tests out.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>