From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [RFC PATCH 0/2] selinux: avoid nf hooks overhead when not needed Date: Wed, 06 Apr 2016 14:23:16 -0400 (EDT) Message-ID: <20160406.142316.1728426867290841888.davem@davemloft.net> References: <1459951424.5425.12.camel@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: pabeni@redhat.com, linux-security-module@vger.kernel.org, james.l.morris@oracle.com, agruenba@redhat.com, sds@tycho.nsa.gov, fw@strlen.de, netdev@vger.kernel.org, selinux@tycho.nsa.gov To: paul@paul-moore.com Return-path: In-Reply-To: Sender: owner-linux-security-module@vger.kernel.org List-Id: netdev.vger.kernel.org From: Paul Moore Date: Wed, 6 Apr 2016 10:07:27 -0400 > "While marking the LSM hook structure doesn't directly affect the > SELinux netfilter hooks, once we remove the ability to deregister the > LSM hooks we will have no need to support deregistering netfilter > hooks and I expect we will drop that functionality as well to help > decrease the risk of tampering." This is not a reasonable postiion. The performance implications are non-trivial for using netfilter hooks when they aren't actually needed.