From aad0d344f0b6e3c3e1d48f95a43b8e97bc83d585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 3 Jan 2008 10:33:03 +0000 Subject: [PATCH] The slab areas shouldn't be user readable... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23231 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/slab/Slab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/slab/Slab.cpp b/src/system/kernel/slab/Slab.cpp index ada264a710..fd6076bcae 100644 --- a/src/system/kernel/slab/Slab.cpp +++ b/src/system/kernel/slab/Slab.cpp @@ -277,7 +277,7 @@ area_allocate_pages(object_cache *cache, void **pages, uint32 flags) // so we lock them. when moving the slab to the empty list we should // unlock them, and lock them again when getting one from the empty list. area_id areaId = create_area(cache->name, pages, B_ANY_KERNEL_ADDRESS, - cache->slab_size, lock, B_READ_AREA | B_WRITE_AREA); + cache->slab_size, lock, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA); if (areaId < 0) return areaId;