Received: from jazzhorn.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id j6Q0BVgA028902 for ; Mon, 25 Jul 2005 20:11:33 -0400 (EDT) Received: from mx1.redhat.com (jazzhorn.ncsc.mil [144.51.5.9]) by jazzhorn.ncsc.mil (8.12.10/8.12.10) with ESMTP id j6Q05LAP006978 for ; Tue, 26 Jul 2005 00:05:21 GMT Subject: Re: Iptables discussion From: Ivan Gyurdiev Reply-To: gyurdiev@redhat.com To: Joshua Brindle Cc: Daniel J Walsh , "Christopher J. PeBenito" , James Morris , Casey Schaufler , Karl MacMillan , selinux@tycho.nsa.gov In-Reply-To: <42E56ACA.9080200@tresys.com> References: <20050724152822.95995.qmail@web34310.mail.mud.yahoo.com> <42E50756.5030302@redhat.com> <1122315868.13068.200.camel@sgc> <1122316136.2997.69.camel@celtics.boston.redhat.com> <1122317025.2997.74.camel@celtics.boston.redhat.com> <42E535A5.1030406@redhat.com> <42E536FB.10408@tresys.com> <1122321195.2997.126.camel@celtics.boston.redhat.com> <42E56ACA.9080200@tresys.com> Content-Type: text/plain Date: Mon, 25 Jul 2005 20:07:09 -0400 Message-Id: <1122336429.31227.12.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov > earlier in this thread, the consistency arguments (iptables having a > run-time state vs. a persistant state, contrary to the persistant state > of the selinux policy) Ah, I see: "This may cause consistency problems. Adding a iptable rule would add it to the current running firewall config (in memory) and may or may not store it in a state file to be rerun on boot." Well, actually we can't add anything to iptables, because of the performance overhead of a policy rewrite. We need to have a concept of a configuration, so that we can begin and end the transaction appropriately and not per rule invocation. In which case, yes, this is a valid argument - something higher level than iptables needs to handle this... but system-config-security is written in python...perhaps some iptables wrapper. > no, implicit labeling considered harmful. This destroys the concept of > equivalence classes (which is what types are). You should be able to > make 2 interfaces equivalent without having a set of rules for each of them. I understand the argument, but realize that most users will not, and should not care - they want to configure their ethernet cards, not any security labels. Anyway, configuring the network interface labels is a lot easier than dealing with allow rules. Then you can look them up via the query function which I submitted. > >Deny rules could possibly be ... denied :) on an selinux-enabled system. > > > > > > > that means the app needs to get a full copy of the policy and try to > find allow rules that could violate the deny state of the iptables rule, > this is bad I don't understand this - I was implying that we completely disallow deny rules. Perhaps you can clarify... -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.