Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id k6IF10Lh012673 for ; Tue, 18 Jul 2006 11:01:00 -0400 Received: from localhost.localdomain (jazzdrum.ncsc.mil [144.51.5.7]) by jazzdrum.ncsc.mil (8.12.10/8.12.10) with ESMTP id k6IF0tt3003158 for ; Tue, 18 Jul 2006 15:00:58 GMT Subject: Re: [PATCH 0/6] netfilter integration From: Karl MacMillan To: Joshua Brindle Cc: casey@schaufler-ca.com, "Christopher J. PeBenito" , SELinux Mail List In-Reply-To: <44BC28BB.1080701@tresys.com> References: <20060717223444.4837.qmail@web36612.mail.mud.yahoo.com> <44BC28BB.1080701@tresys.com> Content-Type: text/plain Date: Tue, 18 Jul 2006 11:00:00 -0400 Message-Id: <1153234800.10744.13.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Mon, 2006-07-17 at 20:18 -0400, Joshua Brindle wrote: > Casey Schaufler wrote: > > > > --- "Christopher J. PeBenito" > > wrote: > > > >> This patchset adds support for netfilter secmark > >> rules in all policy > >> packages. Each line of the file has a priority > >> (1-9) at the beginning > >> of the line, and the remainder is treated as the > >> rule. Sorting is by > >> priority (1-9), and is stable within a module. The > >> current design is > >> for the resultant netfilter_contexts file be > >> suitable for use with > >> iptables-restore. > > > > How confident are you that 9 priorities > > will be sufficient? I can easily imaging > > dependency scenarios that would exceed > > this limitation. I would also expect that > > explict ordering within a priority is > > going to be requested as soon as this > > goes into production. > > > in reality probably 3 priorities would be sufficient. Specific port, > port range and fallback. Its very doubtful that anything else would be > necessary, especially in modules where the priority is much more > important than in base. A module will very rarely have something more > specific than ports, and since ports are non-overlapping it doesn't > matter what order they are in (within a single priority) > Then the 9 nine numbered port ranges are implying generality where there isn't actually any. Why not just create those 3 priorities with _names_ to make the intent clear? Karl > > Speaking of dependencies, wouldn't a > > mechanism to declare dependencies a'la > > make be more precise? Just a thought. > > > > > eh? Policy modules already declare symbol dependencies explicitly (eg., > which types, roles, etc this module uses) > > -- > 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. > -- 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.