Date: Mon, 25 Sep 2006 10:04:06 -0500 From: "Serge E. Hallyn" To: Erich Schubert Cc: "Serge E. Hallyn" , Daniel J Walsh , "Christopher J. PeBenito" , Stephen Smalley , Michael C Thompson , SE Linux Subject: Re: SSH pubkey authentication & MLS policy Message-ID: <20060925150406.GA11645@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> <1158866649.16609.2.camel@wintermute.xmldesign.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1158866649.16609.2.camel@wintermute.xmldesign.de> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Quoting Erich Schubert (erich@debian.org): > Hi, > > > 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')? > > IIRC it was in the static vs. targeted construct, not in > ssh_sysadm_login. > Or it was because in the case of not allowing sysadm logins, I didn't > want it to be able to scan the sysadm's home directory. YMMV. > > Anyway, getattr should be enough. Could you try modifying your sergessh > module to only add getattr attributes, if that is enough? If so, we > should add a new interface which includes getattr, but not full search > to home directories. Yup, the following module also works: policy_module(sergessh,1.0.0) gen_require(` type sshd_t; type abat_home_dir_t; ') allow sshd_t abat_home_dir_t:dir { getattr }; thanks, -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.