Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id j6PIpfgA026020 for ; Mon, 25 Jul 2005 14:51:41 -0400 (EDT) Received: from mx1.redhat.com (jazzdrum.ncsc.mil [144.51.5.7]) by jazzdrum.ncsc.mil (8.12.10/8.12.10) with ESMTP id j6PIkMeR005507 for ; Mon, 25 Jul 2005 18:46:22 GMT Subject: Re: Iptables discussion From: Ivan Gyurdiev Reply-To: gyurdiev@redhat.com To: "Christopher J. PeBenito" Cc: Daniel J Walsh , James Morris , Casey Schaufler , Joshua Brindle , Karl MacMillan , selinux@tycho.nsa.gov In-Reply-To: <1122316136.2997.69.camel@celtics.boston.redhat.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> Content-Type: text/plain Date: Mon, 25 Jul 2005 14:43:44 -0400 Message-Id: <1122317025.2997.74.camel@celtics.boston.redhat.com> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Mon, 2005-07-25 at 14:28 -0400, Ivan Gyurdiev wrote: > > So you could have: > > > > can_network(apache_t) > > > > and then to change it to only use eth0, > > > > can_network(apache_t,eth0_netif_t) > > I think automatic policy editing has to occur post-m4 - it doesn't > make sense to me to be generating pre-m4 macros - this is going > to be very hard to validate, and require a long time to compile and > process. > > Your 1-line change expands to several hundred rules in policy. Perhaps I misunderstood what you were saying. Dan's saying you want the netif argument to be optional, and we fallback to a default label where everything's allowed if the argument is missing - so you'd only add a specific label for things you want managed by iptables. That would make sense, and might be a good idea. -- 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.