From: Janak Desai <janak@us.ibm.com>
To: russell@coker.com.au
Cc: tmraz@redhat.com, sds@tycho.nsa.gov, valdis.kletnieks@vt.edu,
serue@us.ibm.com, klaus@atsec.com, selinux@tycho.nsa.gov
Subject: Re: pam_namespace improvements ..
Date: Mon, 22 May 2006 09:18:36 -0400 [thread overview]
Message-ID: <4471BA2C.7090806@us.ibm.com> (raw)
In-Reply-To: <200605221105.55104.russell@coker.com.au>
Russell Coker wrote:
>On Monday 22 May 2006 10:48, Janak Desai <janak@us.ibm.com> wrote:
>
>
>>After going thorugh the pam_namespace thread again and after talking to
>>some of my peeps, I do see that a mode 000 instance parent can thwart
>>attacks by non-root daemons and non-polyinstanted users on polyinstanted
>>users.
>>
>>
>
>OK.
>
>
>
>>The current implementation of pam_namespace already depends on the
>>existance of the instance parent and allows the admin to configure the
>>names of different instances. I will update the namespace.conf man page,
>>and the comment text in the namespace.conf file to guide admins to
>>appropriately create a different instance parent (and not use the poly
>>dir itself, like the current example suggests). That way, an admin can
>>create an intermediate directory like .inst with 000 or create a whole
>>different directory with 000.
>>
>>
>
>I'm glad that we have agreement on this issue. However I would like to go
>further.
>
>I would like to have the default configuration of major distributions (Fedora,
>Debian, and Gentoo) have some changes to make things more secure in this
>regard.
>
>I believe that we need a script run at boot time to create such directories if
>they don't exist and rename a directory with the name but the wrong
>permissions before creating it if necessary. Having the administrator create
>the directory with mkdir and then chmod it will work for Fedora IFF a
>persistent file system is used for /tmp. Due to other issues SE Linux
>compels the use of a persistent file system for /tmp at this time (I consider
>this a bug and have long-term plans to fix it), however we also want to
>support non-SE users.
>
>I also believe that pam_namespace should have the optional ability (determined
>by a command-line parameter or a config-file setting) to verify the Unix
>permissions and SE Linux context of the mode 000 directory and reject user
>logins if the permissions are considered to be inappropriate.
>
>Configuration tools to support enabling all this functionality in a convenient
>manner would also be good.
>
>
>
Ok, thanks. I will add an option to pam_namespace to allow an admin to
NOT check
the mode of the instance parent. By default, pam_namespace will require
the mode
to be 000. As far as SELinux context, what is the appropriate context
for an instance
parent? Isn't it ok to leave that upto the system security policy?
Because of different
types of polyinstantiated directories, I cannot comprehend a definitive
context
that pam_namespace could/should check for.
Thanks.
-Janak
--
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:[~2006-05-22 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 0:48 pam_namespace improvements Janak Desai
2006-05-22 1:05 ` Russell Coker
2006-05-22 13:18 ` Janak Desai [this message]
2006-05-31 21:32 ` [PATCH] pam_namespace : option to check instance parent mode and man page(s) updates Janak Desai
[not found] ` <1149167654.3514.16.camel@perun.kabelta.loc>
2006-06-01 15:33 ` Janak Desai
2006-06-01 16:52 ` [PATCH] pam_namespace : option to check instance parent mode and man page(s) updates - v2 Janak Desai
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=4471BA2C.7090806@us.ibm.com \
--to=janak@us.ibm.com \
--cc=klaus@atsec.com \
--cc=russell@coker.com.au \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=serue@us.ibm.com \
--cc=tmraz@redhat.com \
--cc=valdis.kletnieks@vt.edu \
/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.