Subject: Re: some errors in installing pp From: Karl MacMillan To: "Nerazzurri.YANG" Cc: Stephen Smalley , selinux@tycho.nsa.gov In-Reply-To: <46051F42.6010805@gmail.com> References: <4603749D.2020106@gmail.com> <1174653268.31436.170.camel@moss-spartans.epoch.ncsc.mil> <1174665064.12383.12.camel@localhost.localdomain> <1174667320.31436.236.camel@moss-spartans.epoch.ncsc.mil> <1174682887.3169.3.camel@localhost.localdomain> <46051F42.6010805@gmail.com> Content-Type: text/plain Date: Mon, 26 Mar 2007 10:52:06 -0400 Message-Id: <1174920726.12204.7.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Sat, 2007-03-24 at 20:53 +0800, Nerazzurri.YANG wrote: > Karl MacMillan wrote: > > On Fri, 2007-03-23 at 12:28 -0400, Stephen Smalley wrote: > >> On Fri, 2007-03-23 at 11:51 -0400, Karl MacMillan wrote: > >>> On Fri, 2007-03-23 at 08:34 -0400, Stephen Smalley wrote: > >>>> On Fri, 2007-03-23 at 14:33 +0800, Nerazzurri.YANG wrote: > >>>>> type self; > >>>> Remove the 'type self;' line. Did you add that manually or was it > >>>> generated by the new audit2allow? If the latter, that is a bug. > >>>> > >>> That is a strange bug (if it is - I can't reproduce locally): > >>> > >>> * The way audit2allow works is that self is never stored in the rules, > >>> it is only converted at the point it is output. I did that specifically > >>> to avoid having to special case for self. So it should never add self as > >>> a require. > >>> > > > > Oops - this is what I wanted to do, but it is not actually possible. > > With multiple source types you can't detect self at output time. > > > >>> * None of the rules reference self. > >>> > >>> So, if this was generated by audit2allow could you give me the rpm > >>> version for policycoreutils and the log file that generated the policy. > >> Reproduced with latest upstream version, via: > >> # audit2allow -a -r | grep self > >> type self; > >> allow netutils_t self:capability sys_module; > > > > Patch below fixes this. > > > sorry to reply late, you know it's weekend, and we are in different > time zone. > > it seems that the problem has been resolved. i will apply the patch > and try again. > > but i will still give the info you ask, i think it's helpful for you. > Thanks for the info. Let me know if the patch doesn't resolve things. 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.