]> git.hungrycats.org Git - linux/commitdiff
[PATCH] __user annotation for selinux_shm_shmat
authorChris Wright <chrisw@osdl.org>
Mon, 14 Jun 2004 16:04:02 +0000 (09:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 14 Jun 2004 16:04:02 +0000 (09:04 -0700)
Add proper __user annotation to selinux_shm_shmat.

From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c

index a66f91304ddb676a13cecbd88ea839ffbd1cc33a..c447232c6ae4c7bfe4c9d101b242c54d3128d5d5 100644 (file)
@@ -3781,7 +3781,7 @@ static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd)
 }
 
 static int selinux_shm_shmat(struct shmid_kernel *shp,
-                            char *shmaddr, int shmflg)
+                            char __user *shmaddr, int shmflg)
 {
        u32 perms;