summaryrefslogtreecommitdiffstats
path: root/sys/sys/msg.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-11-17 13:12:06 +0000
committerrwatson <rwatson@FreeBSD.org>2004-11-17 13:12:06 +0000
commit9fdfeb56f44935729146e5b54256cf76baf323ab (patch)
tree783221fa0252d281c55f1f92629db39e2624b430 /sys/sys/msg.h
parentbbe546d283f2e620d088e074786dea14a4d79272 (diff)
downloadFreeBSD-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/sys/msg.h')
-rw-r--r--sys/sys/msg.h2
1 files changed, 2 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 */
OpenPOWER on IntegriCloud