From aa505453640f6fb597942d233905312c3306171c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 25 Jan 2005 22:18:23 +0000 Subject: [PATCH] As I recently learned making a kernel area B_READ_AREA/B_WRITE_AREA makes it readable/writable for all userland apps. This is not what we want here. We want to make the area cloneable for the registrar and hence use the new flag B_USER_CLONEABLE_AREA. But there seems to be a bug that causes strange things to happen, when using that flag only, therefore we go with all of them until it is fixed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11046 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/messaging/MessagingService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/messaging/MessagingService.cpp b/src/kernel/core/messaging/MessagingService.cpp index 391ff2c86e..29155b65ac 100644 --- a/src/kernel/core/messaging/MessagingService.cpp +++ b/src/kernel/core/messaging/MessagingService.cpp @@ -150,7 +150,8 @@ MessagingArea::Create(sem_id lockSem, sem_id counterSem) // create the area area->fID = create_area("messaging", (void**)&area->fHeader, B_ANY_KERNEL_ADDRESS, kMessagingAreaSize, B_FULL_LOCK, - B_READ_AREA | B_WRITE_AREA); +// B_USER_CLONEABLE_AREA); +B_READ_AREA | B_WRITE_AREA | B_USER_CLONEABLE_AREA); if (area->fID < 0) { delete area; return NULL;