summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-07-14 22:53:35 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-07-14 22:53:35 -0700
commit8fcdd673ba16b7bfd62f2ee88ec9fa221575b4c3 (patch)
treefe924c7258b5f8af63a0fd1259729254c385a518 /include
parentdaf90caf6ff25de4e24decd05a4e46b84eae1a54 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/linux/shm.h13
1 files changed, 13 insertions, 0 deletions
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 */