]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: delay (statically built) match/target initialization
authorMaciej Zenczykowski <maze@google.com>
Mon, 4 Apr 2011 13:31:43 +0000 (15:31 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:31:43 +0000 (15:31 +0200)
commit2c6ac071a9c660b61a76565d1024d372deac8a98
tree772761160fc86b1be650fa185fb55338fd7225e7
parentcf3e52d00b7d3fedf98ef7710c337c441270d936
xtables: delay (statically built) match/target initialization

Matches and targets built into the iptables static binary will always
be registered as the binary starts up, this may potentially (as a result
of kernel version support checking) result in modules being autoloaded.

This is undesirable (for example it may cause CONNMARK target to load
and thus cause the kernel to load the conntrack module, which isn't a
no-op).

Transition to a system where matches and targets are registered into
a pending list, from whence they get fully registered only when
required.

Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
xtables.c