From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Darrel Goeddel <dgoeddel@TrustedCS.com>,
Ivan Gyurdiev <ivg2@cornell.edu>,
Karl MacMillan <kmacmillan@tresys.com>,
SELinux <SELinux@tycho.nsa.gov>
Subject: Re: getseuserbyname patch
Date: Thu, 06 Oct 2005 09:52:31 -0400 [thread overview]
Message-ID: <43452C1F.5070708@redhat.com> (raw)
In-Reply-To: <1128605898.15836.79.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Thu, 2005-10-06 at 09:27 -0400, Daniel J Walsh wrote:
>
>> A couple of things I was thinking about.
>>
>> 1. The call should be to just return the username and level "" if the
>> file does not exist or if there is not default value and no match. So
>> the only time the call would return an error was if no memory.
>>
>
> The problem with always doing this is that it could lead to insecurity,
> e.g. accidental (or malicious) removal of seusers.conf or filesystem
> corruption could end up allowing the user to login with a much greater
> level of access than desired, because we will be using seusers.conf to
> control the authorized categories for individual Linux users rather than
> the kernel policy. That's why I suggested making it a configurable
> setting in /etc/selinux/config, so that we have the option of treating
> it as an error condition that prevents login rather than falling back.
> For MCS or MLS, I think we would actually want to make it an error
> condition and require the presence of seusers.conf and a default entry.
> For existing systems (e.g. FC4) and any system that doesn't want/need a
> separate user mapping, we'd leave it as a non-error condition so that
> nothing breaks there. Note btw that it is *level = NULL that we want,
> so that get_ordered_context_with_level and
> get_default_context_with_level fall back to the ordinary functions.
>
>
Of course if I can get rid of this file, I can probably muck around with
the config file also.
As long as we don't require the flag and default to old behavior. For
MLS installs we can
put in the flag in the config file and change it to fail if the file is
missing.
>> 2. The file should be put into a policy specific directories and be
>> shipped with the policy. When we move to LDAP, we will require a policy
>> type in the key for retrieving users. This way we can continue to allow
>> users to switch from one type of policy to another.
>>
>
> That's ok, as long as you are fine with the notion that some files in
> the policy package can be customized by the user. If you want the
> policy package to ultimately become "pristine" files shipped by the
> distributor and keep all user customizations separate, then it seems
> like it needs to go in a separate package, much as /etc/passwd et al are
> in their own special setup package. It would be nice if ultimately rpm
> -V selinux-policy-targeted (or strict) would report no changes from mere
> local customizations.
>
>
There are files in policy now that are marked config(noreplace) like
local.users, ports, devices etc. So I don't think this is any
differerent.
--
--
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.
next prev parent reply other threads:[~2005-10-06 13:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-27 18:25 getseuserbyname patch Daniel J Walsh
2005-09-28 16:39 ` Stephen Smalley
2005-09-29 13:24 ` Daniel J Walsh
2005-09-29 13:35 ` Stephen Smalley
2005-09-29 15:10 ` Stephen Smalley
2005-09-29 15:23 ` Daniel J Walsh
2005-09-29 15:20 ` Stephen Smalley
2005-09-29 19:11 ` Daniel J Walsh
2005-09-29 21:21 ` Stephen Smalley
2005-10-03 15:52 ` Stephen Smalley
2005-10-03 16:29 ` Stephen Smalley
2005-10-06 13:16 ` Stephen Smalley
2005-10-06 13:27 ` Daniel J Walsh
2005-10-06 13:38 ` Stephen Smalley
2005-10-06 13:52 ` Daniel J Walsh [this message]
2005-10-06 16:52 ` Stephen Smalley
2005-10-06 17:10 ` Daniel J Walsh
2005-10-06 18:33 ` Stephen Smalley
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=43452C1F.5070708@redhat.com \
--to=dwalsh@redhat.com \
--cc=SELinux@tycho.nsa.gov \
--cc=dgoeddel@TrustedCS.com \
--cc=ivg2@cornell.edu \
--cc=kmacmillan@tresys.com \
--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 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.