All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: russell@coker.com.au
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: [RFC][PATCH] user_transition support for libsepol/checkpolicy
Date: Thu, 27 Mar 2008 20:48:34 +0100	[thread overview]
Message-ID: <47EBFA12.40406@redhat.com> (raw)
In-Reply-To: <200803271543.16340.russell@coker.com.au>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russell Coker wrote:
> On Wednesday 26 March 2008 19:46, Daniel J Walsh <dwalsh@redhat.com> wrote:
>> I am not sure where this is going, but I believe that separation based
>> on role in the home directory is a mistake.  It assumes that the home
>> directory will always be used by the same user with the same role.   And
>> will not work when you have a network file system that supports labels.
>>
>> In Red Hat I can login to people.redhat.com people.fedoraproject.com
>> which I should use the guest_r.  While logging into my laptop I would be
>> unconfined_t and on test machines I might get staff_r or user_r.  All of
>> them would use the same homedirectory.  So how would this work in this
>> environment?
> 
> If you have the same home directory contents (including .login, .bashrc, and 
> equivalent files) and you can execute programs from the home directory, then 
> how can you usefully have roles which are really different on different 
> machines?
> 
If I login to people.redhat.com I will log in as guest_t this type is
not allowed to use the network, execute files in the home directory or
run any setuid apps.  If I as the guest_t user want to muck around with
the .login file so that when I login to a different machine as
unconfined_t, I don't see a problem.  This is about defining roles and
policy based on the machine you login to.
> You could for example have guest_r on machine A mapping to sysadm_r on machine 
> B (which I believe bears some similarity to the reclassification of documents 
> when going between certain military organisations).
> 
This is not an MLS issue, and this does happen on MLS environments where
they say the same user on one machine can get to Secret while on another
machine he can get to TopSecret,  I would surmise that bother users
would have the same home dir, of course on the machine that is Secret he
would not be able to access the top secret files.
> The idea of a network filesystem having the same labels on all machines where 
> it is mounted even when there are differences in policy and/or user rights on 
> those machines makes no sense to me.
> 

Well I would assume that the policy is the same on each machine except
the default context that the user logs in as.  And I have given you a
descrete example of how things work at Red Hat.  This is also how our
customers expect this to work.  CA/EATrust has made major money on this
concept...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfr+hIACgkQrlYvE4MpobNidgCgnljhMx4GjdKbAdRzpUZUPGmN
qqoAn27gqpThN26Si285ne2uLxEr22on
=/dFC
-----END PGP SIGNATURE-----

--
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:[~2008-03-27 23:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-24 17:40 [RFC][PATCH] user_transition support for libsepol/checkpolicy Joshua Brindle
2008-03-24 20:15 ` Stephen Smalley
2008-03-24 20:27   ` Joshua Brindle
2008-03-24 20:36     ` Stephen Smalley
2008-03-25 11:04       ` Joshua Brindle
2008-03-25 12:08         ` Stephen Smalley
2008-03-25 13:01           ` Christopher J. PeBenito
2008-03-25 13:52             ` Joshua Brindle
2008-03-25 16:27               ` Stephen Smalley
2008-03-26  8:46           ` Daniel J Walsh
2008-03-26 13:36             ` Stephen Smalley
2008-03-27 19:42               ` Daniel J Walsh
2008-03-27  4:43             ` Russell Coker
2008-03-27 19:48               ` Daniel J Walsh [this message]
2008-03-24 20:30   ` Joshua Brindle
2008-03-25  4:25   ` Russell Coker
2008-03-25 10:37     ` Joshua Brindle
2008-03-25 11:42     ` Stephen Smalley
2008-03-26  8:40   ` Daniel J Walsh
2008-03-26 13:33     ` Stephen Smalley
2008-03-25 16:42 ` Stephen Smalley
2008-03-25 20:50   ` Joshua Brindle
2008-03-26 12:48     ` Stephen Smalley
2008-03-26 13:29       ` Joshua Brindle
2008-03-26 13:41         ` Stephen Smalley
2008-03-26 13:57           ` Stephen Smalley
2008-03-26 14:41             ` Joshua Brindle

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=47EBFA12.40406@redhat.com \
    --to=dwalsh@redhat.com \
    --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.