Research Menu

.
Skip Search Box

SELinux Mailing List

Re: [RFC & PATCH] inherited type definition.

From: KaiGai Kohei <kaigai_at_kaigai.gr.jp>
Date: Thu, 17 Mar 2005 23:57:40 +0900


Hi,

>>e.g.
>>attribute attr;
>>type X;
>>type Y extends attr;
>>type Z extends Y;
>>
>>"allow @attr foo:XXX XXX;" means "allow Y foo:XXX XXX;", Z is not included.
>
>
> Ah, the fact that Y is included is interesting; this is due to the fact
> that your implementation handles 'type Y extends attr;' in the same
> manner as a 'type Y, attr;' declaration, right?

Yes, this EXTENDS syntax does not discriminate type with attribute. There is no reason for dealing with those discriminatory, I think.

>>Effective use of existing software assets is reason.
>>For example, samba_httpd_content_t is a type extends samba_share_t
>>and httpd_sys_content_t. When we try to use the union filetype
>>"samba_httpd_content_t", we must fix the allow statements of "samba_share_t"
>>and "httpd_sys_content_t" if an allow statement without '@' means
>>no-expandable permission grant.
>
>
> True, and you also have to track down all indirect references, e.g. uses
> of "file_type" or "sysadmfile" in the policy.

Hmm,,,
Indeed, difficulty for validation has possibility to become complex problem. OK, I'll implement EXTENDS patch with no-expansion by default and "@type" means expand descendants.
I try to optimize that existing policy will be made EXTENDS syntax conscious. Please wait new patch for a while.

Thanks

-- 
DO NOTHING IS THE WORST POLICY.
KaiGai Kohei <kaigai@kaigai.gr.jp>

--
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.
Received on Thu 17 Mar 2005 - 10:03:34 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service