Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133550 - quagga fails to compile with grsecurity patched kernel and FEATURES=userpriv
Summary: quagga fails to compile with grsecurity patched kernel and FEATURES=userpriv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 15:44 UTC by Jan Kundrát (RETIRED)
Modified: 2006-05-17 02:08 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 Jan Kundrát (RETIRED) gentoo-dev 2006-05-16 15:44:18 UTC
I have a hardened-sources kernel with /proc protection (non-root will get almost empty /proc). When I try to emerge quagga with FEATURES="usersandbox userpriv", its configure script says "checking ipforward method check... sysctl" while the correct result should be "proc". The compilation later borks on udnefined symbol, IPCTL_FORWARDING iirc.

According to the (probably outdated) http://svn.cuwireless.net:8080/svn/cuw/tags/quagga-15-mar-2004/configure.ac , ./configure tries to access /proc/net/snmp. I'm not familiar with grsec/portage/userpriv/whatever, but my "ordinary user" gets permission denied when trying to access that file/directory. I've looked at http://www.quagga.net/docs/docs-multi/The-Configure-script-and-its-options.html but I was unable to find any option that would enable forcing some method when running on Linux.

So, I can see two possible solutions:
a) use RESTRICT (I'm not an ebuild dev so I just assume what it does)
b) patch quagga's ./configure to support autodetection

I'd rather see option b) to happen.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-05-17 01:13:42 UTC
IMO restricting userpriv is the best way to fix it. This way we wouldn't worry about portability issues (e.g. Gentoo/BSD).

The userpriv feature has been restricted in quagga-0.98.6-r1.ebuild.