version 1.2, 2018/08/28 13:11:52
|
version 1.3, 2018/12/06 17:46:56
|
Line 29 Or compiled from scratch, using:
|
Line 29 Or compiled from scratch, using:
|
Install this KASLR kernel: |
Install this KASLR kernel: |
|
|
[[!template id=programlisting text=""" |
[[!template id=programlisting text=""" |
# cp /path/to/your/kernel /netbsd_kaslr |
# cp /path/to/your/kaslr/kernel /netbsd_kaslr |
"""]] |
"""]] |
|
|
Finally, add the following line in the `/boot.cfg` file: |
Finally, add the following line in the `/boot.cfg` file: |
Line 44 Use
|
Line 44 Use
|
--- |
--- |
|
|
To use KASLR, just choose the "Boot KASLR" option in the menu at boot |
To use KASLR, just choose the "Boot KASLR" option in the menu at boot |
time. That's it! |
time. That's it! You are now using Kernel ASLR. |
|
|
Technical Details |
Technical Details |
----------------- |
----------------- |
|
|
Kernel ASLR is applied by default in GENERIC on as many VM areas as possible. |
Kernel ASLR is applied by default in GENERIC on as many VM areas as possible. |
GENERIC_KASLR offers randomization of one more area: the Kernel Image. |
GENERIC_KASLR provides randomization of one more area: the Kernel Image. |
|
|
Table of what gets randomized: |
Table of what gets randomized: |
|
|