All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim McCullough <jim.mccullough@gmail.com>
To: russell@coker.com.au
Cc: KaiGai Kohei <kaigai@kaigai.gr.jp>,
	SELinux Mail List <selinux@tycho.nsa.gov>,
	kaigai@ak.jp.nec.com
Subject: Re: [RFC & PATCH] inherited type definition.
Date: Wed, 6 Apr 2005 14:23:19 -0400	[thread overview]
Message-ID: <ae023b6005040611233320cb5c@mail.gmail.com> (raw)
In-Reply-To: <200504070130.46902.russell@coker.com.au>

In regards to the multiple applications access /var/log and the macros
in use.  With the current growth of the project,  I see some future
issues where we might want to consider branching files under /var/log
to different policy contexts.  This might help prevent applications
like ssh or apache from reading /var/log/messages.  An idea would be
specification on common applications to restrict them withing
subdirectories for the applications specific.  Debian Sarge & FC3 both
put httpd logs in a subdirectory under /var/log and can be restricted
in a manner to just those directories for access under /var/log.

Just a thought on future planning.  I personally prefer a separate log
for any application that accesses /var/log for writing purposes.  IE.
sshd has /var/log/sshd, while ftp has /var/log/ftpd/, and so forth. 
Under a server that handles multiple domains, it makes life much
easier to maintain the log files for tracking user loads by the
individual client.
-- 
Jim McCullough

On Apr 6, 2005 11:30 AM, Russell Coker <russell@coker.com.au> wrote:
> On Thursday 07 April 2005 00:50, KaiGai Kohei <kaigai@kaigai.gr.jp> wrote:
> > > I don't like that idea.  Tracking when the '@' symbol should be used will
> > > be beyond the skill of most people who write policy.  Then there is the
> > > issue of someone writing a domain with the idea that it will never be
> > > used for inheritance but then having it used for inheritance later.  If
> > > the inherited domain has it's policy in the public repository then things
> > > can get fixed, but if someone inherits a domain for their own private use
> > > then they could get surprised by a policy update that grants some access
> > > they didn't expect because the upstream policy developers didn't plan for
> > > inheritance and didn't use the '@' symbol.
> >
> > I think that the required skill for tracking the security policy with
> > inherited type is same as one for the security policy writen with
> > attributes.
> 
> When inspecting policy to determine it's operation you can see a list of
> attributes on a type declaration and know that each applies to the type.
> 
> With inheritance as you describe you have exclusion rules such that you don't
> necessarily know that domain user_foo_t can access bar_t just because user_t
> can access bar_t and user_foo_t inherits.
> 
> If we want to make a change to the inheritance it doesn't change the access
> granted to just one domain or type but instead it operates on an unknown
> number of domains/types.
> 
> > > About a year ago I was involved in some discussions about these issues,
> > > and one of the major factors was how to deal with
> > > user_t/user_r/user_ssh_t and other_t/other_r/other_ssh_t type
> > > inheritance.  One of the NSA guys asked me to write up a proposal for how
> > > to do this.  After thinking about it for a year I haven't devised a good
> > > answer.  If your work can result in a solution to this problem then I'm
> > > sure that everyone will be willing to accept some trade-offs.  But
> > > currently I am not convinced that the benefits outweigh the costs of
> > > this.
> >
> > Does the example of user_t/user_r/user_ssh_t mean 'inherited domain'?
> > It has not been a significant issue yet, I think.
> > I think it's enough benefit to create a new type which can be accessed from
> > multi domains. (e.g Apache & FTPd shared directory)
> 
> It does mean inherited domain.
> 
> I want to write policy such that someone can load a binary policy module for a
> new user role professor_r which then automatically creates the domain
> professor_foo_t because the base policy has appropriate statements that are
> equivalent in functionality to the macros we currently use in macros/programs
> for such things.
> 
> --
> 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 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.

  reply	other threads:[~2005-04-06 18:25 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-13 16:36 [RFC & PATCH] inherited type definition KaiGai Kohei
2005-03-14 13:17 ` KaiGai Kohei
2005-03-14 13:50 ` Stephen Smalley
2005-03-14 15:13   ` Luke Kenneth Casson Leighton
2005-03-14 15:22     ` Stephen Smalley
2005-03-14 16:01       ` Luke Kenneth Casson Leighton
2005-03-14 19:27         ` Valdis.Kletnieks
2005-03-14 20:10         ` Stephen Smalley
2005-03-14 17:26   ` KaiGai Kohei
2005-03-14 18:10     ` Luke Kenneth Casson Leighton
2005-03-14 18:25     ` Stephen Smalley
2005-03-15 11:50       ` KaiGai Kohei
2005-03-15 14:42         ` Stephen Smalley
2005-03-16  4:42           ` Kaigai Kohei
2005-03-16 10:00             ` Luke Kenneth Casson Leighton
2005-03-16 14:05             ` Stephen Smalley
2005-03-17  9:32               ` Kaigai Kohei
2005-03-17 13:55                 ` Stephen Smalley
2005-03-17 14:57                   ` KaiGai Kohei
2005-03-21 10:07                     ` KaiGai Kohei
2005-03-21 15:59                       ` Stephen Smalley
2005-03-23  8:17                         ` Kaigai Kohei
2005-03-23 13:56                           ` Stephen Smalley
2005-04-16  7:31                             ` KaiGai Kohei
2005-04-18 12:25                               ` Stephen Smalley
2005-04-18 16:57                                 ` KaiGai Kohei
2005-03-24 11:06                           ` Luke Kenneth Casson Leighton
2005-03-24 12:34                             ` Kaigai Kohei
2005-04-06 12:49         ` Russell Coker
2005-04-06 14:50           ` KaiGai Kohei
2005-04-06 15:30             ` Russell Coker
2005-04-06 18:23               ` Jim McCullough [this message]
2005-04-07  2:16               ` Kaigai Kohei
2005-04-06 17:55             ` Luke Kenneth Casson Leighton
2005-03-14 16:38 ` Karl MacMillan
2005-03-15 11:47   ` KaiGai Kohei
2005-03-15 14:00     ` Karl MacMillan
2005-03-16  4:35       ` Kaigai Kohei
2005-03-16 10:13         ` Luke Kenneth Casson Leighton
2005-03-16 21:46           ` Karl MacMillan
2005-03-16 21:31         ` Karl MacMillan
2005-03-17 13:05           ` Kaigai Kohei
2005-03-17 19:15             ` Karl MacMillan
2005-03-17 20:07               ` Stephen Smalley
2005-03-17 21:41                 ` Karl MacMillan
2005-03-18 13:13                   ` Stephen Smalley
2005-03-18 13:56                     ` Stephen Smalley
2005-03-18 22:28                     ` Karl MacMillan
2005-03-18 23:03                       ` Luke Kenneth Casson Leighton
2005-03-20 23:20                         ` Karl MacMillan
2005-03-21  0:17                           ` Luke Kenneth Casson Leighton
2005-03-21 13:39                             ` Karl MacMillan
2005-03-22  0:14                               ` Luke Kenneth Casson Leighton
2005-03-22 13:53                                 ` Karl MacMillan
2005-03-24 11:04                                   ` Luke Kenneth Casson Leighton
2005-03-24 12:31                                     ` Kaigai Kohei
2005-03-24 22:19                                       ` Luke Kenneth Casson Leighton
2005-03-24 22:27                                     ` Luke Kenneth Casson Leighton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae023b6005040611233320cb5c@mail.gmail.com \
    --to=jim.mccullough@gmail.com \
    --cc=kaigai@ak.jp.nec.com \
    --cc=kaigai@kaigai.gr.jp \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.