Received: from zombie.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id m6SNfolF020032 for ; Mon, 28 Jul 2008 19:41:50 -0400 Received: from rv-out-0708.google.com (jazzdrum.ncsc.mil [144.51.5.7]) by zombie.ncsc.mil (8.12.10/8.12.10) with ESMTP id m6SNfnKS028995 for ; Mon, 28 Jul 2008 23:41:49 GMT Received: by rv-out-0708.google.com with SMTP id f25so3931573rvb.54 for ; Mon, 28 Jul 2008 16:41:48 -0700 (PDT) Message-ID: <10143820807281641j32da0c88v971ce52897de52e6@mail.gmail.com> Date: Mon, 28 Jul 2008 19:41:48 -0400 From: "Karl MacMillan" To: "Stephen Smalley" Subject: Re: Mapping Linux GROUP to an SELinux user ?... Cc: "Hasan Rezaul-CHR010" , selinux@tycho.nsa.gov In-Reply-To: <1216947967.5185.3.camel@sulphur> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <48881546.6070903@ak.jp.nec.com> <1216898673.3881.4.camel@sulphur> <1216947967.5185.3.camel@sulphur> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Thu, Jul 24, 2008 at 9:05 PM, Stephen Smalley wrote: > On Thu, 2008-07-24 at 14:22 -0400, Hasan Rezaul-CHR010 wrote: >> Hi All, >> >> Is there any way at all to map an entire Linux GROUP to an SELinux_user >> ?? >> >> For example if Linux User accounts (Admin1, Admin2, and Admin3), all >> belong to the Linux group "wadm". >> >> Is there a simple or tricky way to map the entire Linux group wadm -> >> to staff_u ? >> >> This way, any Linux user account that happens to be part of the "wadm" >> group would automatically be mapped to staff_u ? This way we don't have >> to execute several semanage commands to create all those individual >> mappings ? > > Not presently, but one could certainly implement such support in the > userland (pam_selinux + libselinux getseuserbyname). > I know that we and others have done this in the past, though our implementation at least is not really a general solution but something specific for one situation. A general solution would need to resolve what the semantics of the mapping would be including what to do when multiple groups match. Not really a problem, just requires some thought. Karl -- 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.