mirror of
				https://github.com/Kicksecure/security-misc.git
				synced 2025-11-03 23:04:40 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
 | 
						|
## See the file COPYING for copying conditions.
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
if [ -f /usr/libexec/helper-scripts/pre.bsh ]; then
 | 
						|
   ## pre.bsh would `source` the following folders:
 | 
						|
   ## /etc/panic-on-oops_pre.d/*.conf
 | 
						|
   ## /usr/local/etc/panic-on-oops_pre.d/*.conf
 | 
						|
   source /usr/libexec/helper-scripts/pre.bsh
 | 
						|
fi
 | 
						|
 | 
						|
## Makes the kernel panic on oopses. This prevents the kernel
 | 
						|
## from continuing to run a flawed processes. Many kernel exploits
 | 
						|
## will also cause an oops which this will make the kernel kill.
 | 
						|
sysctl kernel.panic_on_oops=1
 |