From 8fcdd673ba16b7bfd62f2ee88ec9fa221575b4c3 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 14 Jul 2002 22:53:35 -0700 Subject: LSM: move struct shmid_kernel out of ipc/shm.c to include/linux/shm.h Also move where we set sma->sem_perm.mode and .key to before ipc_addid() gets called. --- include/linux/shm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/linux') diff --git a/include/linux/shm.h b/include/linux/shm.h index be3351619c2e..be7d433725ca 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -71,6 +71,19 @@ struct shm_info { }; #ifdef __KERNEL__ +struct shmid_kernel /* private to the kernel */ +{ + struct kern_ipc_perm shm_perm; + struct file * shm_file; + int id; + unsigned long shm_nattch; + unsigned long shm_segsz; + time_t shm_atim; + time_t shm_dtim; + time_t shm_ctim; + pid_t shm_cprid; + pid_t shm_lprid; +}; /* shm_mode upper byte flags */ #define SHM_DEST 01000 /* segment will be destroyed on last detach */ -- cgit v1.2.3