diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-17 13:12:06 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-17 13:12:06 +0000 |
commit | 9fdfeb56f44935729146e5b54256cf76baf323ab (patch) | |
tree | 783221fa0252d281c55f1f92629db39e2624b430 /sys | |
parent | bbe546d283f2e620d088e074786dea14a4d79272 (diff) | |
download | FreeBSD-src-9fdfeb56f44935729146e5b54256cf76baf323ab.zip FreeBSD-src-9fdfeb56f44935729146e5b54256cf76baf323ab.tar.gz |
In the kernel-only portionss of System V IPC objects (messages,
message queues, shared memory segments, and semaphores), add a struct
label pointer, which will hold the MAC labels for the objects. As a
result of recent work to separate kernel and user space ABIs, this
should not break the ABI for applications using System V IPC, but will
require a rebuild of the ipcs monitoring tool.
Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/msg.h | 2 | ||||
-rw-r--r-- | sys/sys/sem.h | 1 | ||||
-rw-r--r-- | sys/sys/shm.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/msg.h b/sys/sys/msg.h index 53d1047..020e1a6 100644 --- a/sys/sys/msg.h +++ b/sys/sys/msg.h @@ -107,6 +107,7 @@ struct msg { /* 0 -> free header */ u_short msg_ts; /* size of this message */ short msg_spot; /* location of start of msg in buffer */ + struct label *label; /* MAC Framework label */ }; /* @@ -141,6 +142,7 @@ struct msqid_kernel { /* * Kernel-private components of the message queue. */ + struct label *label; /* MAC label */ }; #else /* !_KERNEL */ diff --git a/sys/sys/sem.h b/sys/sys/sem.h index 19ef47c..9c96ddf 100644 --- a/sys/sys/sem.h +++ b/sys/sys/sem.h @@ -89,6 +89,7 @@ extern struct seminfo seminfo; */ struct semid_kernel { struct semid_ds u; + struct label *label; /* MAC framework label */ }; /* internal "mode" bits */ diff --git a/sys/sys/shm.h b/sys/sys/shm.h index 07ae3a6..0595782 100644 --- a/sys/sys/shm.h +++ b/sys/sys/shm.h @@ -90,6 +90,7 @@ struct shminfo { */ struct shmid_kernel { struct shmid_ds u; + struct label *label; /* MAC label */ }; extern struct shminfo shminfo; |