Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262295 - qt won't compile on hardened profile with grsecurity/TPE
Summary: qt won't compile on hardened profile with grsecurity/TPE
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-12 19:37 UTC by Robert Piasek (RETIRED)
Modified: 2011-11-18 23:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Piasek (RETIRED) gentoo-dev 2009-03-12 19:37:26 UTC
when unprivileged user tries to execute configure script  - it reports unusual error:

./configure 

This is the Qt/X11 Open Source Edition.

You don't seem to have 'make' or 'gmake' in your PATH.

Of course PATHs are correct and make->gmake are there. Portage group is also added to /proc/sys/kernel/grsecurity/tpe_gid.

Investigating configure further it seems it's running it's own (platform dependent) version of "which". In linux case it's:
config.tests/unix/which.test and silently fails. When I run this file manually (as portage user) I get this:
./config.tests/unix/which.test: /bin/sh: bad interpreter: Permission denied
but when I try to run it as:
sh config.tests/unix/which.test
everything is ok.

I can think of few ways of fixing it, but I'm not sure if any of them is the right one.

1) detect grsec and if enabled modify configure script to use native which to determinate location of make (especially if you check config.tests/unix/which.test - it's using which to find location of which)
2) modify configure script to always use /bin/sh config.tests/unix/which.test

Of course you can always turn off TPE and it solves the problem - but that's not really the best solution.

Reproducible: Always
Comment 1 solar (RETIRED) gentoo-dev 2009-03-12 21:53:24 UTC
bad interp? What is on the first line of ./config.tests/unix/which.test: ?
Comment 2 Robert Piasek (RETIRED) gentoo-dev 2009-03-13 18:21:48 UTC
(In reply to comment #1)
> bad interp? What is on the first line of ./config.tests/unix/which.test: ?
> 

#!/bin/sh
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2011-11-13 14:52:17 UTC
More than 2 years and a half later, is this still relevant?
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2011-11-18 23:58:36 UTC
Please open a new bug if this is still an issue on current versions.