Re: BUG at security/selinux/avc.c:883 (was: Re: linux-next: Tree for July 17: early crash on x86-64)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Sun, Jul 20, 2008 at 11:42:53AM +0200, Thomas Meyer wrote:

Argh...  Fallout from ->permission() patch series.  I've folded that into
rebase (along with Randy's compile fixes and missing bit in capability.c
in ->inode_permission() patch; AFAICS takes care of all mismerges as well).
In the meanwhile, see the patch below on top of next-20080718:

diff --git a/fs/namei.c b/fs/namei.c
index a15c155..c0a64e2 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -286,7 +286,8 @@ int permission(struct inode *inode, int mask, struct nameidata *nd)
 	if (retval)
 		return retval;
 
-	return security_inode_permission(inode, mask);
+	return security_inode_permission(inode,
+					mask & (MAY_READ|MAY_WRITE|MAY_EXEC));
 }
 
 /**
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for July 17, Stephen Rothwell, (Thu Jul 17, 8:28 am)
Re: linux-next: Tree for July 17 (sysctl/syscall), Randy Dunlap, (Thu Jul 17, 3:21 pm)
Re: linux-next: Tree for July 17 (net_namespace), Randy Dunlap, (Thu Jul 17, 3:34 pm)
Re: linux-next: Tree for July 17: early crash on x86-64, Rafael J. Wysocki, (Thu Jul 17, 4:06 pm)
Re: linux-next: Tree for July 17: early crash on x86-64, Alexander Beregalov, (Fri Jul 18, 6:52 am)
Re: linux-next: Tree for July 17: early crash on x86-64, Rafael J. Wysocki, (Sat Jul 19, 11:42 am)
Re: linux-next: Tree for July 17: early crash on x86-64, James Morris, (Sat Jul 19, 12:54 pm)
Re: BUG at security/selinux/avc.c:883 (was: Re: linux-next ..., Al Viro, (Sun Jul 20, 5:15 am)