The newly added DAHDI 2.5.0.1 ebuild is the only version that will build against the current stable hardened-sources 3.0.4 As such, I am requesting an immediate stable to avoid breaking Asterisk deployments on hardened systems. Arch teams, if this compiles and the resulting module loads & unloads, I consider that a successful test. TARGET KEYWORDS="amd64 x86"
amd64: archtester dahdi # ebuild dahdi-2.5.0.1.ebuild clean install archtester dahdi # modprobe dahdi && rmmod dahdi && echo "Success" Success archtester dahdi # uname -r 2.6.38-tuxonice-r1-amd64
(In reply to comment #1) > archtester dahdi # uname -r > 2.6.38-tuxonice-r1-amd64 I guess you should test with 3.x kernel
Works for me on amd64. uname -r 2.6.39-gentoo-r3 with the following modules: lsmod dahdi_echocan_mg2 4150 120 wct4xxp 179546 124 dahdi 168280 250 dahdi_echocan_mg2,wct4xxp I'm not able to test on 3.0.4 or hardened at the moment.
(In reply to comment #3) > I'm not able to test on 3.0.4 or hardened at the moment. The goal is test to linux3
When tested against the newest stable hardened-sources, it would appear that a different build failure occurs. My apologies, this isn't ready yet.
I've tried now with hardened-sources-3.0.4-r2 on amd64. Tested with the wct4xxp driver for a Wildcard TE410P/TE405P. The modules loads and asterisk is happy.
Verified with gentoo-sources-3.0.6 on amd64.
As promised, I've now checked through the gentoo patchset for dahdi. None of the files that are touched by the patchset for 2.5.0 have changed between 2.5.0 and 2.5.0.1. So, we can be sure the patches are still needed and apply in the correct locations. I'm running 2.5.0.1 in production now.
Now that dahdi 2.5.0.2 is out, perhaps that's what we should be working on. I've tested that and it works with the same patches as 2.5.0.1. Tested against hardened-sources-3.0.4-r2 and gentoo-sources-3.0.6 on amd64 There are no changes between 2.5.0.1 and 2.5.0.2 that interfere with the gentoo-dahdi-patchset-0.8. Don't forget to apply the change to 07-grsecurity-no-constify.diff, where +#ifndef CONSTIFY_PLUGIN should be replaced by +#ifndef __no_const That is required to compile against hardened-3.0.4.