OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/4] proc: fix NULL ->i_fop oops
Re: [PATCH 1/4] proc: fix NULL ->i_fop oops [message #23584 is a reply to message #23429] Tue, 20 November 2007 15:17 Go to previous messageGo to previous message
Christoph Hellwig is currently offline  Christoph Hellwig
Messages: 59
Registered: April 2006
Member
On Tue, Nov 20, 2007 at 10:05:05AM -0500, Stephen Smalley wrote:
> > Nice, getting rid of this is a very good step formwards.  Unfortunately
> > we have another copy of this junk in
> > security/selinux/selinuxfs.c:sel_remove_entries() which would need the
> > same treatment.
> 
> Can't just be dropped completely for selinux - we need a way to drop
> obsolete entries from the prior policy when we load a new policy.
> 
> Is the only real problem here the clearing of f_op?  If so, we can
> likely remove that from sel_remove_entries() without harm, and fix the
> checks for it to use something more reliable.

f_op removal is the biggest issue.  It can't really work and this is the
last instance.  But in general having some half-backed attempts at revoke
is never a good idea.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH][IPC] Lost unlock and fput in mqueue.c on error path
Next Topic: Re: [patch 1/1] selinux: do not clear f_op when removing entries
Goto Forum:
  


Current Time: Fri Oct 18 19:44:22 GMT 2024

Total time taken to generate the page: 0.04771 seconds