Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521738 - kde-apps/kdebase-kioslaves fails to build on hardened
Summary: kde-apps/kdebase-kioslaves fails to build on hardened
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 13:42 UTC by harryrage
Modified: 2015-09-12 18:17 UTC (History)
2 users (show)

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


Attachments
Attachements (attachements.log,772.98 KB, text/plain)
2014-08-30 13:42 UTC, harryrage
Details
emerge --info '=kde-apps/kdebase-kioslaves-4.14.3' (kde-apps:kdebase-kioslaves-4.14.3.emerge_info.txt,7.51 KB, text/plain)
2015-09-12 17:26 UTC, ephemer0l
Details

Note You need to log in before you can comment on or make changes to this bug.
Description harryrage 2014-08-30 13:42:13 UTC
Created attachment 383958 [details]
Attachements

summary:
emerge for kioslaves-4.12.5 fails when trying to execute fishcode_generator.sh

build broken for libmolletnetwork.so:
--------------------------------------------------------------------------------
[ 51%] [34m[1mGenerating fishcode.h
[0mcd /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish && /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish/generate_fishcode.sh /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish/fish.pl /usr/bin/md5sum /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5_build/kioslave/fish/fishcode.h -f\ 1
/bin/sh: /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish/generate_fishcode.sh: /bin/sh: bad interpreter: Permission denied
make[2]: *** [kioslave/fish/fishcode.h] Error 126
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5_build'
make[1]: *** [kioslave/fish/CMakeFiles/kio_fish.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
--------------------------------------------------------------------------------

I recognized a warning in configure :
CMake Warning (dev) in kioslave/network/network/CMakeLists.txt:
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "molletnetwork" has an INTERFACE_LINK_LIBRARIES property which
  differs from its LINK_INTERFACE_LIBRARIES properties.

  INTERFACE_LINK_LIBRARIES:

    KDE4__kdecore;KDE4__kdnssd;Qt4::QtNetwork;Qt4::QtGui

  LINK_INTERFACE_LIBRARIES:

    

This warning is for project developers.  Use -Wno-dev to suppress it.

It seems to be related because it fails when building libmolletnetwork.so according to dependencies mismatch. 

Attachements:

- Output of emerge --info
- Output of emerge -pqv
- build.log
- environment
- eclass-debug.log
- kernel .config
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-09-04 13:02:15 UTC
What's the output of 'dmesg | tail' immediately after build failure?
Comment 2 harryrage 2014-09-08 03:10:36 UTC
seems to be related do grsec kernel memory protection :

grsec: denied untrusted exec (due to file in group-writable directory) of /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish/generate_fishcode.sh by /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.12.5/kioslave/fish/generate_fishcode.sh[sh:7536] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[sh:7535] uid/euid:250/250 gid/egid:250/2

note besides: the new gnome environment just runs flawlessly with nearly any grsec kernel feature.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2014-09-12 19:00:42 UTC
(In reply to harryrage from comment #2)
> seems to be related do grsec kernel memory protection :
> 
> grsec: denied untrusted exec (due to file in group-writable directory) of
> /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.
> 12.5/kioslave/fish/generate_fishcode.sh by
> /var/tmp/portage/kde-base/kdebase-kioslaves-4.12.5/work/kdebase-kioslaves-4.
> 12.5/kioslave/fish/generate_fishcode.sh[sh:7536] uid/euid:250/250
> gid/egid:250/250, parent /bin/bash[sh:7535] uid/euid:250/250 gid/egid:250/2
> 
> note besides: the new gnome environment just runs flawlessly with nearly any
> grsec kernel feature.

Could you please try with 4.13.x / 4.14.x?
Comment 4 peter.heinemann 2015-07-03 13:02:25 UTC
The problem still remains with 4.14.3 under amd64 hardened-4.0.6
Comment 5 Magnus Granberg gentoo-dev 2015-07-04 14:42:57 UTC
emerge --info?
Comment 6 ephemer0l 2015-09-12 17:26:39 UTC
Created attachment 411730 [details]
emerge --info '=kde-apps/kdebase-kioslaves-4.14.3'