From: "Toshiharu Harada" <haradats@gmail.com>
To: "Stephen Smalley" <sds@tycho.nsa.gov>
Cc: "Toshiharu Harada" <haradats@nttdata.co.jp>,
linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org
Subject: Re: [RFC] TOMOYO Linux
Date: Wed, 13 Jun 2007 23:22:38 +0900 [thread overview]
Message-ID: <9d732d950706130722g12a22604p223381a8e281a4a1@mail.gmail.com> (raw)
In-Reply-To: <1181743635.17547.350.camel@moss-spartans.epoch.ncsc.mil>
2007/6/13, Stephen Smalley <sds@tycho.nsa.gov>:
> On Wed, 2007-06-13 at 17:13 +0900, Toshiharu Harada wrote:
> > Here are examples:
> > /bin/bash process invoked from mingetty: /sbin/mingetty /bin/bash
> > /bin/bash process invoked from sshd: /usr/sbin/sshd /bin/bash
> > /bin/bash process invoked from /bin/bash which was invoked from sshd: /usr/sbin/sshd /bin/bash /bin/bash
>
> Why can't you do this via SELinux domain transitions? That lets you do
> it by equivalence class rather than per-binary, and let's you just
> encode the security-relevant parts of the "invocation history" aka call
> chain. For example, the above could be expressed in SELinux policy
> already as:
> domain_auto_trans(getty_t, shell_exec_t, local_shell_t)
> domain_auto_trans(sshd_t, shell_exec_t, remote_shell_t)
> domain_auto_trans(remote_shell_t, shell_exec_t, remote_subshell_t)
> or whatever you like. But you don't have to keep extending it
> indefinitely when you don't need to distinguish in policy, so you might
> choose to entirely omit the last one, and just have it stay in
> remote_shell_t.
The above SELinux policy looks similar to the one I wrote, but
that is not very true. Because in my example, path name corresponds to a file
while local_shell_t are bound to multiple.
I understand the advantages of label, but it needs to be
translated to human understandable form of path name.
So I think pathname based call chains are advantages for
at least auditing and profiling.
--
Toshiharu Harada
haradats@gmail.com
next prev parent reply other threads:[~2007-06-13 14:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 8:13 Toshiharu Harada
2007-06-13 14:07 ` Stephen Smalley
2007-06-13 14:22 ` Toshiharu Harada [this message]
2007-06-13 19:37 ` Stephen Smalley
2007-06-15 6:37 ` Toshiharu Harada
2007-06-13 20:02 ` Rik van Riel
2007-06-13 21:35 ` Toshiharu Harada
2007-06-13 21:42 ` Rik van Riel
2007-06-13 22:25 ` Toshiharu Harada
2007-06-13 22:54 ` James Morris
2007-06-13 23:18 ` Toshiharu Harada
2007-06-15 1:39 ` Tetsuo Handa
2007-06-13 23:32 ` william(at)elan.net
2007-06-14 10:53 ` Stephen Smalley
2007-06-15 6:10 ` Toshiharu Harada
2007-06-15 8:37 ` Tetsuo Handa
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=9d732d950706130722g12a22604p223381a8e281a4a1@mail.gmail.com \
--to=haradats@gmail.com \
--cc=haradats@nttdata.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sds@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®