From: Janak Desai <janak@us.ibm.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Joshua Brindle <jbrindle@tresys.com>,
sgrubb@redhat.com, dwalsh@redhat.com, tmraz@redhat.com,
ltcgcw@us.ibm.com, klaus@atsec.com, selinux@tycho.nsa.gov
Subject: Re: [PATCH] newrole: use pam session management services - v4
Date: Fri, 08 Sep 2006 10:35:06 -0400 [thread overview]
Message-ID: <45017F9A.7090307@us.ibm.com> (raw)
In-Reply-To: <1157467315.4014.105.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Mon, 2006-09-04 at 17:01 -0400, Janak Desai wrote:
>
>>This patch updates newrole to allow it to use pam session mangement
>>services. Currently newrole only uses the authenticaion services of
>>pam. Session management services are needed to allow pam_namespace
>>to appropriately reconfigure polyinstantiated namespace for the
>>new session being established with newrole.
>>
>>For newrole to work correctly with pam_namespace, in addtion to
>>this patch, a patch to pam_namespace and a patch to the lssp
>>policy will also be required. These additional patches will be
>>posted the selinux mailing list following this patch.
>>
>>Changes since v3 of this patch, posted on 8/27/06:
>> 1. Incorporated feedback to v2
>> a. Create/install an lspp version of newrole.pamd when
>> building with LSPP_PRIV=y
>> b. Removed duplicate definition of _GNU_SOURCE
>> c. Keep CAP_SYS_ADMIN, CAP_FOWNER, CAP_CHOWN and
>> CAP_DAC_OVERRIDE in permitted set and raise them in the
>> effective set prior to calling pam session management
>> functions.
>
>
> Implications of retaining those capabilities while still reverting to
> the caller's uid? ptrace checks capabilities, but e.g. kill does not.
> This is similar to the issues associated with file capabilities, see
> http://marc.theaimsgroup.com/?t=115422220700001&r=1&w=2
>
> Now, in the case where newrole runs in its own domain, SELinux will
> itself provide isolation/protection, so for the strict/MLS policy,
> newrole should be protected against interference by the caller. But
> under targeted/MCS, you don't get such guarantees. But I assume you
> want to build a single newrole binary for everyone.
>
> Does running in the caller's uid have any other implications for
> pam_namespace, e.g. ownership of the directories it creates?
>
No, pam_namespace will try and set ownership and mode of the
instance directories that it creates to those of the polyinstantiated
directory. That's why pam_namespace needs those powerful dac
capabilities. Instance parent, by default, is 000. To create
new instances, changing their ownership and mode and to
mount/unmount them requires that pam_namespace have chown,
fowner, dac_override and sys_admin capabilities.
-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-09-08 14:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 21:01 [PATCH] newrole: use pam session management services - v4 Janak Desai
2006-09-05 12:20 ` Joshua Brindle
2006-09-05 12:53 ` Stephen Smalley
2006-09-05 13:00 ` Joshua Brindle
2006-09-05 14:30 ` Stephen Smalley
2006-09-05 14:41 ` Stephen Smalley
2006-09-08 14:35 ` Janak Desai [this message]
2006-09-07 16:30 ` Darrel Goeddel
2006-09-07 16:52 ` Stephen Smalley
2006-09-08 14:40 ` Janak Desai
2006-09-08 17:22 ` Stephen Smalley
2006-09-08 17:28 ` Daniel J Walsh
2006-09-08 18:40 ` Stephen Smalley
2006-09-08 18:50 ` Daniel J Walsh
2006-09-09 0:56 ` Russell Coker
2006-09-09 1:01 ` Russell Coker
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=45017F9A.7090307@us.ibm.com \
--to=janak@us.ibm.com \
--cc=dwalsh@redhat.com \
--cc=jbrindle@tresys.com \
--cc=klaus@atsec.com \
--cc=ltcgcw@us.ibm.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=sgrubb@redhat.com \
--cc=tmraz@redhat.com \
/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.