]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/sysv_msg.c
xnu-4570.1.46.tar.gz
[apple/xnu.git] / bsd / kern / sysv_msg.c
index 56c670424d92fa8b93f4c05cc0a13d41d459a69e..fad2cfbf766c6eb35febf096c2472150f81ae866 100644 (file)
 #include <sys/sysproto.h>
 #include <sys/ipcs.h>
 
+#if CONFIG_MACF
+#include <security/mac_framework.h>
+#endif
+
 #if SYSV_MSG
 
 static int msginit(void *);
@@ -268,7 +272,7 @@ msginit(__unused void *dummy)
        }
 
        MALLOC(msqids, struct msqid_kernel *,
-                       sizeof(struct user_msqid_ds) * msginfo.msgmni, 
+                       sizeof(struct msqid_kernel) * msginfo.msgmni,
                        M_SHM, M_WAITOK);
        if (msqids == NULL) {
                printf("msginit: can't allocate msqids");