Thread (2 messages) flat view 2 messages, 2 authors, 2017-05-15

Re: [PATCH] kmod: don't load module unless req process has CAP_SYS_MODULE

From: Florian Westphal <fw@strlen.de>
Date: 2017-05-15 20:00:46
Also in: lkml

Eric W. Biederman [off-list ref] wrote:
If loading the conntrack module changes the semantics of packet
processing when nothing is configured that is a bug in the conntrack
module.
Thats the default behaviour since forever.

modprobe nf_conntrack_ipv4 -- module_init registers netfilter hooks
and starts doing connection tracking.

You might say 'its wrong' but thats how its been for over a decade.

If you have a suggestion on how to transition to a 'sane' behaviour,
then I'm all ears.

Note however, that conntrack doesn't need any configuration currently.

Its just there once module is loaded.
We could try hooking into nftables/iptables modules that use conntrack
info to make a decision, and thats what we do now in namespaces other
than init_net.

We still do it be default in iniet_net because someone could be
doing conntrack just for purpose of ctnetlink events (conntrack -E and
friends, or flow accouting and the like).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help