All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joshua Brindle" <JBrindle@snu.edu>
To: <SELinux@tycho.nsa.gov>
Subject: selinux from user POV
Date: Sat, 11 Oct 2003 13:29:07 -0500	[thread overview]
Message-ID: <sf880644.030@atlas.snu.edu> (raw)


This is going to be contraversial, I know, but this is something that
is fairly important to me and others I know of on this list.

Being a user on an SELinux machine is currently not good.. Ideally
it should be totally transparent but there are some issues. Mainly, 
right now, a user can't even add a .ssh directory and put their
ssh key in authorized_keys2 and then log in with it without the 
admin having to relabel (or at least label those objects) . 

Also, user webpages can't be read by apache until they are
labeled correctly, which makes them fairly useless. Users
can label  httpd_user_*_t but that clearly isn't something that 
most users are going to be aware of or desire to be hassled with.

There are a few solutions, many I don't like, the others I know
the nsa guys probably won't like but this is, like I said, fairly important.

1.An admin could cron relabeling to the /home partition, this is hackish
and doesn't seem like a good solution to me..

2. Could give users access to a limited setfiles script with a limited 
read-only file_contexts file that they can use on their own directories,
they'd also have to be given permission to label ssh types.. (ick)
it would also require additional user knowledge.. users aren't prone
to learn _anything_

--- nsa guys really won't like these---

3. Trap file creation in glibc and use a limited file_contexts that
glibc can read and setfscreatecon just before opening it for 
creation. This suffers from being in the context of whatever 
called for the file creation so many domains would possibly have
to be given relabel permissions. 

4. (This one may be over complicated but seems like the most
transparent solution). Load the file_contexts file into the kernel, 
NOT for enforcement of labels for files that already exist but
only for creation of new files. hook around open file, if it's being
created assign it's label, the file_contexts loaded into the kernel
could be limited to avoid any possible security hazards, this would
eliminate the need to assign relabeling permissions to user contexts
and application contexts that may need to create files in the user
home dirs.. (mail daemons, etc). 

#4 is my favorite but I don't know how complicated it could be
to implement, and I'm almost certain that the nsa guys will smite
me for this :( . It is the most transparent for the users, requires
the least work for the admin, and would really make selinux more
enterprise friendly.. 

Please give comments, flames, opinions, etc

Joshua Brindle




--
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:[~2003-10-11 18:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-11 18:29 Joshua Brindle [this message]
2003-10-12  3:09 ` selinux from user POV Russell Coker
2003-10-12  5:27   ` Brian May
2003-10-12  9:01     ` Russell Coker
2003-10-12  3:52 ` Brian May
2003-10-12  6:55 ` How to get Xfree86 to run - old API Michael Reilly
2003-10-12  7:38   ` Russell Coker
2003-10-12 23:09     ` Michael Reilly
2003-10-14 14:24 ` selinux from user POV Stephen Smalley
2003-10-14 19:46   ` Thorsten Kukuk

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=sf880644.030@atlas.snu.edu \
    --to=jbrindle@snu.edu \
    --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.