Date: Mon, 21 Mar 2005 00:17:25 +0000 From: Luke Kenneth Casson Leighton To: Karl MacMillan Cc: "'Stephen Smalley'" , "'Kaigai Kohei'" , "'KaiGai Kohei'" , "'SELinux Mail List'" , selinux-dev@tresys.com Subject: Re: [RFC & PATCH] inherited type definition. Message-ID: <20050321001725.GE14130@lkcl.net> References: <20050318230350.GM8040@lkcl.net> <200503202320.j2KNKA8R029138@gotham.columbia.tresys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <200503202320.j2KNKA8R029138@gotham.columbia.tresys.com> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Sun, Mar 20, 2005 at 06:20:09PM -0500, Karl MacMillan wrote: > > On Fri, Mar 18, 2005 at 05:28:57PM -0500, Karl MacMillan wrote: > > > Also, the more I think about it the more convinced I am that the > > > show-stopper limitation of the extends syntax is that it > > allows only one subset of access. > > > > there is nothing to stop you using an extends inside a macro: > > > > $1_t EXTENDS $1_ftp_t > > > > l. > > > > How does this address the problem - only one subset of access from $1_ftp_t can > be marked with the @ syntax. not that my opinion particularly matters or is authoritative in any way, but i don't like the @ syntax - so i don't see it as a problem, because i would never implement the @ syntax, not in a million years. the @ syntax goes against the "mandatory" grain in "MAC". putting a wrapper (curly braces, brackets syntax, whatever is most appropriate) around those sections which _are_ allowed to be inherited is more along the MAC conceptual lines. you could then potentially have an additional qualifier in your curly braces wrapper which specifies _which_ children may "extend" a class (remembering also to allow $1s etc to be substituted into that) e.g. some_macro (` inheritable($1_ftp_t, parent_class2_t) { allow ....; } allow ...; ') then do this: some_macro(user) user_ftp_t EXTENDS user_t; despite there being several things declared by the some_macro(user), only SOME of those - those that are EXPLICITLY ALLOWED TO BE INHERITED - permissions are duplicated into the child, user_ftp_t. ... just to check: perhaps could i ask you to elaborate with some examples because i may be getting the wrong end of the stick / lost some context, here. l. -- 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.