From 20f284b9b64cd23b3e9e1e045797887b197231f4 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 14 Jun 2004 09:03:40 -0700 Subject: [PATCH] __user annotation for shm_shmat hook declaration Add proper __user annotation for shm_shmat hook in security.h. From: Mika Kukkonen Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds --- include/linux/security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/security.h b/include/linux/security.h index df0089af8ad6..e2f166907ebb 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -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); -- cgit v1.2.3