summaryrefslogtreecommitdiff
path: root/Kernel/KBufferBuilder.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-25 22:41:34 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-25 22:41:34 +0100
commit9e55bcb7da81c4c8da05a831d9c1cd4b5ededb9f (patch)
treeed590a0334be96051b1428e08bf5b88a284a4709 /Kernel/KBufferBuilder.cpp
parent0b7a2e0a5a6875f6e44d0ac0b0dc5e5d27205f86 (diff)
downloadserenity-9e55bcb7da81c4c8da05a831d9c1cd4b5ededb9f.zip
Kernel: Make kernel memory regions be non-executable by default
From now on, you'll have to request executable memory specifically if you want some.
Diffstat (limited to 'Kernel/KBufferBuilder.cpp')
-rw-r--r--Kernel/KBufferBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp
index 0c4c369746..07edbd2ffe 100644
--- a/Kernel/KBufferBuilder.cpp
+++ b/Kernel/KBufferBuilder.cpp
@@ -17,7 +17,7 @@ KBuffer KBufferBuilder::build()
}
KBufferBuilder::KBufferBuilder()
- : m_buffer(KBuffer::create_with_size(1048576 * 4))
+ : m_buffer(KBuffer::create_with_size(4 * MB, Region::Access::Read | Region::Access::Write))
{
}