mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-03 12:09:58 -05:00
Merge pull request #250 from raja-grewal/Panik-Kalm
Add details on "oopes" and kernel panics
This commit is contained in:
commit
886f6095db
@ -41,6 +41,10 @@ space, user space, core dumps, and swap space.
|
|||||||
|
|
||||||
- Restrict kernel profiling and the performance events system to `CAP_PERFMON`.
|
- Restrict kernel profiling and the performance events system to `CAP_PERFMON`.
|
||||||
|
|
||||||
|
- Force the kernel to panic on "oopses" that can potentially indicate and thwart
|
||||||
|
certain kernel exploitation attempts. Provide the option to reboot immediately
|
||||||
|
on a kernel panic.
|
||||||
|
|
||||||
- Randomize the addresses (ASLR) for mmap base, stack, VDSO pages, and heap.
|
- Randomize the addresses (ASLR) for mmap base, stack, VDSO pages, and heap.
|
||||||
|
|
||||||
- Disable asynchronous I/O as `io_uring` has been the source
|
- Disable asynchronous I/O as `io_uring` has been the source
|
||||||
|
@ -109,6 +109,18 @@ kernel.sysrq=0
|
|||||||
##
|
##
|
||||||
kernel.perf_event_paranoid=3
|
kernel.perf_event_paranoid=3
|
||||||
|
|
||||||
|
## Force the kernel to panic on "oopses".
|
||||||
|
## Can sometimes potentially indicate and thwart certain kernel exploitation attempts.
|
||||||
|
## Also cause panics on machine check exceptions.
|
||||||
|
## Panics may be due to false-positives such as bad drivers.
|
||||||
|
##
|
||||||
|
## https://forums.whonix.org/t/set-oops-panic-kernel-parameter-or-kernel-panic-on-oops-1-sysctl-for-better-security/7713
|
||||||
|
##
|
||||||
|
## See /usr/libexec/security-misc/panic-on-oops for implementation.
|
||||||
|
##
|
||||||
|
#kernel.panic_on_oops=1
|
||||||
|
#kernel.panic=-1
|
||||||
|
|
||||||
## Enable ASLR for mmap base, stack, VDSO pages, and heap.
|
## Enable ASLR for mmap base, stack, VDSO pages, and heap.
|
||||||
## Heap randomization can lead to breakages with legacy applications.
|
## Heap randomization can lead to breakages with legacy applications.
|
||||||
##
|
##
|
||||||
|
@ -16,3 +16,4 @@ fi
|
|||||||
## from continuing to run a flawed processes. Many kernel exploits
|
## from continuing to run a flawed processes. Many kernel exploits
|
||||||
## will also cause an oops which this will make the kernel kill.
|
## will also cause an oops which this will make the kernel kill.
|
||||||
sysctl kernel.panic_on_oops=1
|
sysctl kernel.panic_on_oops=1
|
||||||
|
#sysctl kernel.panic=-1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user