Received: with ECARTIS (v1.0.0; list netdev); Thu, 30 Jan 2003 15:28:05 -0800 (PST) Received: from pizda.ninka.net (IDENT:root@pizda.ninka.net [216.101.162.242]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id h0UNRs3v025200 for ; Thu, 30 Jan 2003 15:27:55 -0800 Received: from localhost (IDENT:davem@localhost.localdomain [127.0.0.1]) by pizda.ninka.net (8.9.3/8.9.3) with ESMTP id PAA22974; Thu, 30 Jan 2003 15:19:47 -0800 Date: Thu, 30 Jan 2003 15:19:47 -0800 (PST) Message-Id: <20030130.151947.48545419.davem@redhat.com> To: jmorris@intercode.com.au Cc: kuznet@ms2.inr.ac.ru, netdev@oss.sgi.com, linux-security-module@wirex.com Subject: Re: [PATCH] LSM networking: netlink hooks for 2.5.59 (6/8) From: "David S. Miller" In-Reply-To: References: X-FalunGong: Information control. X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 1637 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: davem@redhat.com Precedence: bulk X-list: netdev This one is not acceptable, you're adding a function call to every netlink SKB receive even in the case where security is disabled. Capability testing is a very simple bit test, there is no justification for calling these cap_netlink_{send,recv}() things externally for such a simple operation when security is disabled. It is things like this that make me still totally hate the networking security changes. It is like a virus that is spreading throughout the entire tree. It is a bunch of strange tests that have to be maintained which do external calls to modules that are not even in the source tree so I can't even see how the callbacks are used (no, the fact that there is documentation of the callback doesn't change this issue, and no I'm not going to some site to download a bunch of security modules everytime I need to make changes in these areas). Frankly, while I'm very happy about the fixup of the security overhead, these changes are still way too invasive. This stuff is garbage.