Date: Thu, 21 Sep 2006 11:55:38 -0500 From: "Serge E. Hallyn" To: "Serge E. Hallyn" Cc: Erich Schubert , Daniel J Walsh , "Christopher J. PeBenito" , Stephen Smalley , Michael C Thompson , SE Linux Subject: Re: SSH pubkey authentication & MLS policy Message-ID: <20060921165538.GA29036@sergelap.austin.ibm.com> References: <4511AAF2.8090809@us.ibm.com> <45129698.5080503@redhat.com> <1158852528.14117.48.camel@wintermute.xmldesign.de> <20060921160426.GA2487@sergelap.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20060921160426.GA2487@sergelap.austin.ibm.com> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Quoting Serge E. Hallyn (serue@us.ibm.com): > Quoting Erich Schubert (erich@debian.org): > > Hi, > > This is not MLS related. > > Here's the Debian diff used to allow public key logins. > > http://svn.debian.org/wsvn/selinux/refpolicy/branches/debian/policy/modules/services/ssh.te?op=diff&rev=0&sc=0 > > Looks like the statements we need, but why do you have this > under tunable_policy(`ssh_sysadm_login')? > > > I believe that sshd verifies the home directory to be not > > world-writeable. > > The patch above adds "search", although "getattr" probably is > > sufficient. But I didn't want to add another interface... yeah, I'm a > > bit lazy sometimes. The following module allowed pubkey ssh login to work: policy_module(sergessh,1.0.0) gen_require(` type sshd_t; ') userdom_search_all_users_home_dirs(sshd_t) userdom_search_generic_user_home_dirs(sshd_t) userdom_search_staff_home_dirs(sshd_t) Which seems odd to me - i thought a loadable module should not be able to directly address sshd_t... -serge -- 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.