Skip to contentSkip to conversation

Core policy

DISCUSSION Stephen D. Smalley 3 participants 4 messages Feb 25, 2003 – Feb 27, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Wayne Salamon

I agree with the above. The macros that I was (mostly) referring to are
the ones in macros/program. The idea behind these seems to have parameterized domain/type definitions. I'm not convinced they're a good idea, and many have dependencies to types defined in other .te files.

Creating derived domains (and associated derived types) from the calling domain is actually good practice, as it allows you to maintain separation between the user domains. Otherwise, you end up with an initial separation between the user domains that can be easily circumvented through shared program domains that have the same accesses to the same types. I'd agree that all of the macros (including the global macros as well as the program macros) need a thorough audit and reduction, but I don't think you truly want to eliminate the use of program macros for instantiating program domains.

--
Stephen Smalley, NSA
[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw

Re: Core policy and TCB

Hi,

I am interested in this notion of a core policy as well.

My take is slightly different, I think (although correct me if I am wrong). Rather than identifying a set of core subject types, I want to identify the subject types that form the trusted computing base of a SELinux policy. Because a core subject type need not be in the system TCB, the TCB subject types would be a subset of the core policy types.

I would like to prove that the TCB subject types are protected from the rest of the system (i.e., the integrity of these TCB subject types should only be dependent on input from other TCB subject types) . As a first step, I have used Biba integrity as the basis to see where integrity issues are. I have used my policy analysis prototype to collect the Biba integrity violations in the policy. I could provide a table of such violations to those that are interested or to the list if enough interest.

As a summary, there are some ad hoc issues (like dpkg discussed earlier -- I included it in the TCB because I assumed that it was a fundamental system update tool) and broad assignments of rights issues (like the use of the attribute file_type to assign rights to files, as Stephen mentioned). The latter case can be fixed by decomposing attributes, but I would rather find another approach. I like the general specification of attributes, but where they conflict with higher-level goals, I would like to be able to dictate a resolution strategy (deny, audit, etc.). For example, sys admins have access to all files, but they should probably audited upon access to low integrity files (and denied altogether on some). This could be relative to the integrity spec rather than changing the attribute relationships...

I am looking into this, but I am curious what your thoughts are on the matter.

Regards,
Trent.
----------------------------------
Trent Jaeger
IBM T.J. Watson Research Center
19 Skyline Drive
Hawthorne, NY 10532
[email protected]
(914) 784-7225, FAX (914) 784-7595

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw

Re: Core policy and TCB

Quoted 7 lines · Trent Jaeger

I would like to prove that the TCB subject types are protected from the rest of the system (i.e., the integrity of these TCB subject types should only be dependent on input from other TCB subject types) . As a first step, I have used Biba integrity as the basis to see where integrity issues are. I have used my policy analysis prototype to collect the Biba integrity violations in the policy. I could provide a table of such violations to those that are interested or to the list if enough interest.

I think it would be appropriate for the list. Please send me a private copy if you decide not to post to the list. If you feel it's too big for the list then perhaps a web page for it would be suitable.

Quoted 3 lines

As a summary, there are some ad hoc issues (like dpkg discussed earlier -- I included it in the TCB because I assumed that it was a fundamental system update tool)

dpkg is a fundamental system tool for Debian. The rpm policy is not as important for Red Hat because AFAIK no-one has attempted to do the types of live updates on Red Hat systems that I routinely do on Debian systems.

Quoted 5 lines

dictate a resolution strategy (deny, audit, etc.). For example, sys admins have access to all files, but they should probably audited upon access to low integrity files (and denied altogether on some). This could be relative to the integrity spec rather than changing the attribute relationships...

Currently the only file that the system administrator is denied access to is /etc/shadow (to prevent accidentally re-labelling it to the wrong type). Also much access of device nodes is denied. Are there any other areas that you think should be denied?

I have experimented with denying sysadm_t read access to tmpfile:lnk_file but that gets annoying quickly when "ls -l" doesn't return correct results.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw

Re: Core policy and TCB

Hi,

Per Russell's invite, I put together a little document with the highlights of our TCB analysis for the SELinux example policy. This work is ongoing, so comments would be appreciated.

I apologize for the ugly formatting, but I wanted to get it out before too long.

Trent.

(See attached file: notify_030227.pdf)

Russell Coker
<[email protected] To: Trent Jaeger/Watson/IBM@IBMUS
m.au> cc: [email protected]
Subject: Re: Core policy and TCB
02/25/2003 04:50
PM
Please respond to
Russell Coker

Quoted 4 lines · Trent Jaeger

I would like to prove that the TCB subject types are protected from the rest of the system (i.e., the integrity of these TCB subject types should only be dependent on input from other TCB subject types) . As a first step, I have used Biba integrity as the basis to see where integrity

issues

Quoted 3 lines

are. I have used my policy analysis prototype to collect the Biba integrity violations in the policy. I could provide a table of such violations to those that are interested or to the list if enough

interest.

I think it would be appropriate for the list. Please send me a private copy
if you decide not to post to the list. If you feel it's too big for the list
then perhaps a web page for it would be suitable.

Quoted 1 line

As a summary, there are some ad hoc issues (like dpkg discussed earlier

--

Quoted 1 line

I included it in the TCB because I assumed that it was a fundamental

system

Quoted 1 line

update tool)

dpkg is a fundamental system tool for Debian. The rpm policy is not as important for Red Hat because AFAIK no-one has attempted to do the types of live updates on Red Hat systems that I routinely do on Debian systems.

Quoted 1 line

dictate a resolution strategy (deny, audit, etc.). For example, sys

admins

Quoted 4 lines

have access to all files, but they should probably audited upon access to low integrity files (and denied altogether on some). This could be relative to the integrity spec rather than changing the attribute relationships...

Currently the only file that the system administrator is denied access to is
/etc/shadow (to prevent accidentally re-labelling it to the wrong type). Also much access of device nodes is denied. Are there any other areas that you think should be denied?

I have experimented with denying sysadm_t read access to tmpfile:lnk_file but
that gets annoying quickly when "ls -l" doesn't return correct results.

--

http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page