mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-07 23:54:58 -04:00
add usr/bin/hardening-enable
This commit is contained in:
parent
19cc6d7555
commit
1dbca1ea2d
4 changed files with 48 additions and 2 deletions
25
usr/bin/hardening-enable
Executable file
25
usr/bin/hardening-enable
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
systemctl enable hide-hardware-info.service
|
||||
|
||||
touch /etc/noexec
|
||||
|
||||
mkdir -p /etc/sysctl.d
|
||||
|
||||
echo "\
|
||||
## This is an automatically generated file.
|
||||
## This file was automatically generated by:
|
||||
## $0
|
||||
## Edits may be lost!
|
||||
|
||||
## https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG#Configuration
|
||||
lkrg.ci_panic=1
|
||||
lkrg.umh_lock=1" > /etc/sysctl.d/40-security-misc-autogenerated.conf
|
||||
|
||||
pam-auth-update --enable console-lockdown-security-misc
|
Loading…
Add table
Add a link
Reference in a new issue