Re: [PATCH 0/7] netfilter: ebtables: CONFIG_COMPAT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Florian,

First of all, thanks for pointing out these problems.

Florian Westphal schreef:
> Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:
>   
>> In a quick look, ebtables 2.0.8-2 seems to just work there in both
>> 32/64 and 64/64 [U/K-bitness] combinations:
>>     
> [..]
>   
>> So I wonder whether extra patches are really needed for x86_64.
>>     
>
> I did investigate the "lets pad the structures in userspace" scenario.
> It has two problems.
>
> First of all, support for a few targets/matches is missing.
>
>   
I would certainly accept patches to the userland code to fix these
remaining problems that I was unaware of. I don't have access to such a
machine.

> Second, the point is to run unmodified binaries with either a 32
> or 64 bit kernel without recompiling.
>
> Solving this transparently (i.e. same binary) would thus
> require a run-time check for the kernel architecture before the
> set/getsockopt can be made.
>
> As far as I could see this would require a lot of changes to the ebtables
> userland code base, too.
>   
Could you elaborate why having to distribute two compiled versions of
ebtables for different platform configurations is more overhead than the
overhead added by your kernel patches? Can't you decide on installation
time of the Linux system which binary to provide?
At this time I am more in favor of fixing userland...

cheers,
Bart

-- 
Bart De Schuymer
www.artinalgorithms.be

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux