Messages in this thread Patch in this message | | | Date | Mon, 14 Jun 2004 09:27:56 -0700 | From | Chris Wright <> | Subject | [PATCH 2/3] __user annotation for selinux_shm_shmat |
| |
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@osdl.org> Signed-off-by: Chris Wright <chrisw@osdl.org>
===== 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |