[PATCH 2/3] __user annotation for selinux_shm_shmat

From: Chris Wright
Date: Mon Jun 14 2004 - 11:31:05 EST


Add proper __user annotation to selinux_shm_shmat.

CHECK security/selinux/hooks.c
security/selinux/hooks.c:4163:17: warning: incorrect type in initializer (incompatible argument 2 (different address spaces))
security/selinux/hooks.c:4163:17: expected int ( *shm_shmat )( ... )
security/selinux/hooks.c:4163:17: got int ( static [addressable] [toplevel] *<noident> )( ... )
CC security/selinux/hooks.o

From: Mika Kukkonen <mika@xxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxx>

===== security/selinux/hooks.c 1.41 vs edited =====
--- 1.41/security/selinux/hooks.c 2004-06-12 20:52:29 -07:00
+++ edited/security/selinux/hooks.c 2004-06-14 09:00:37 -07:00
@@ -3781,7 +3781,7 @@
}

static int selinux_shm_shmat(struct shmid_kernel *shp,
- char *shmaddr, int shmflg)
+ char __user *shmaddr, int shmflg)
{
u32 perms;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/