]> git.hungrycats.org Git - linux/commitdiff
[PATCH] __user annotation for shm_shmat hook declaration
authorChris Wright <chrisw@osdl.org>
Mon, 14 Jun 2004 16:03:40 +0000 (09:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 14 Jun 2004 16:03:40 +0000 (09:03 -0700)
Add proper __user annotation for shm_shmat hook in security.h.

From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/security.h

index df0089af8ad6f8c027e946533470ca0ebe682275..e2f166907ebb5c6e1b9337ebc8832c58ca445420 100644 (file)
@@ -1172,7 +1172,7 @@ struct security_operations {
        int (*shm_associate) (struct shmid_kernel * shp, int shmflg);
        int (*shm_shmctl) (struct shmid_kernel * shp, int cmd);
        int (*shm_shmat) (struct shmid_kernel * shp, 
-                         char *shmaddr, int shmflg);
+                         char __user *shmaddr, int shmflg);
 
        int (*sem_alloc_security) (struct sem_array * sma);
        void (*sem_free_security) (struct sem_array * sma);