summaryrefslogtreecommitdiffstats
path: root/sys/sys/msg.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-04-06 16:59:54 +0000
committertrasz <trasz@FreeBSD.org>2011-04-06 16:59:54 +0000
commitd6f4192036c8ed6ef963cdb7793404025756ab06 (patch)
tree1bb412523ffd3b85f320c30f0d19d8cd22bd8c98 /sys/sys/msg.h
parent440cd5face8a8098f95d7e1a290efcde8e22adcd (diff)
downloadFreeBSD-src-d6f4192036c8ed6ef963cdb7793404025756ab06.zip
FreeBSD-src-d6f4192036c8ed6ef963cdb7793404025756ab06.tar.gz
Add ucred pointer to the SysV-related memory structures. This is required
for racct. Note that after this commit, ipcs(1) needs to be rebuilt. Otherwise, it will fail with "ipcs: sysctlbyname: kern.ipc.msqids: Cannot allocate memory". Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
Diffstat (limited to 'sys/sys/msg.h')
-rw-r--r--sys/sys/msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/msg.h b/sys/sys/msg.h
index e4edd09..f4193c8 100644
--- a/sys/sys/msg.h
+++ b/sys/sys/msg.h
@@ -160,6 +160,7 @@ struct msqid_kernel {
* Kernel-private components of the message queue.
*/
struct label *label; /* MAC label */
+ struct ucred *cred; /* creator's credentials */
};
#else /* !_KERNEL */
OpenPOWER on IntegriCloud