OpenVZ Forum

Home » Mailing lists » Devel » Re: namespace support requires network modules to say "GPL"
Re: namespace support requires network modules to say "GPL" [message #24174] Sat, 01 December 2007 13:13
Mark Lord is currently offline  Mark Lord
Messages: 7
Registered: December 2007
Junior Member
Mark Lord wrote:
>> Now that we have network namespace support merged it is time to
>> revisit the sysfs support so we can remove the dependency on !SYSFS.
> ...
> Now that the namespace updates are part of 2.6.24,
> there is a major inconsistency in network EXPORT_SYMBOLs.
> It used to be that an external network module could get away without
> having to add a MODULE_LICENSE("GPL*") line to the source.
> In support of that, common networking functions (still) use EXPORT_SYMBOL()
> rather than the more restrictive EXPORT_SYMBOL_GPL().
> Eg.  register_netdev(), sk_alloc(), __dev_get_by_name().
> But now, none of those three are actually usable by default,
> because they all require "init_net", which is EXPORT_SYMBOL_GPL().
> So.. It appears that one of three things should really happen next:
> 1) Change the other exports to also be EXPORT_SYMBOL_GPL.
> 2) Have register_netdev, sk_alloc, and __dev_get_by_name default
> to using init_net when NULL is specified in the namespace field.
> or
> 3) Change init_net to be EXPORT_SYMBOL_GPL.

Obviously that should instead say:

3) Change init_net to be EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL.
Containers mailing list
Read Message
Previous Topic: [PATCH net-2.6.25 6/6][CORE] Remove the empty net_table
Next Topic: [PATCH net-2.6.25 1/3][IPV4] Cleanup the devinet_sysctl_register
Goto Forum:

Current Time: Mon Apr 22 22:42:01 GMT 2024

Total time taken to generate the page: 0.01196 seconds