From: James Morris Subject: Re: [PATCH 0/2] Security: Add security tables for mandatory access control Date: Mon, 26 May 2008 19:12:58 +1000 (EST) Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: netfilter-devel@vger.kernel.org, linux-security-module@vger.kernel.org, Paul Moore , Stephen Smalley To: Jan Engelhardt Return-path: In-Reply-To: Sender: linux-security-module-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org On Mon, 26 May 2008, Jan Engelhardt wrote: > In fact, there is not even really a per-rule [rule={match,target}] > destroy function. A new table image is loaded and atomically > swapped with the previous one. You would rather want to call > security_*() in the ioctl phase. It's possible the existing coarse-grained capability check that SELinux hooks into (cap_net_admin) is enough for rule deletion, given that we don't know the ultimate effect of deleting rules. i.e. there may be no point in trying to further decompose that privilege. - James -- James Morris