Compare commits
2 Commits
cbb273ab5e
...
ebfba51df0
| Author | SHA256 | Date | |
|---|---|---|---|
|
ebfba51df0
|
|||
|
51cb2f9f6a
|
@@ -383,4 +383,7 @@ partitioning() {
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f partitioning
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -209,4 +209,7 @@ partition_encryption() {
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f partition_encryption
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -116,4 +116,7 @@ prepare_mounts() {
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f prepare_mounts
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -104,4 +104,7 @@ EOF
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f installation_initramfs
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ write_crypttab() {
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f write_crypttab
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Generate the '/etc/crypttab' target entries.
|
# Generate the '/etc/crypttab' target entries.
|
||||||
@@ -148,4 +151,7 @@ EOF
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f generate_crypttab
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -85,4 +85,7 @@ update_grub_bootparameter() {
|
|||||||
|
|
||||||
guard_dir && return 0
|
guard_dir && return 0
|
||||||
}
|
}
|
||||||
|
### Prevents accidental 'unset -f'.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
readonly -f update_grub_bootparameter
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ vm.mmap_rnd_compat_bits=16
|
|||||||
# settings.
|
# settings.
|
||||||
###########################################################################################
|
###########################################################################################
|
||||||
fs.suid_dumpable=0
|
fs.suid_dumpable=0
|
||||||
kernel.core_pattern=|/bin/false
|
kernel.core_pattern='|/bin/false'
|
||||||
|
|
||||||
### Disable User Namespaces, as it opens up a large attack surface to unprivileged users.
|
### Disable User Namespaces, as it opens up a large attack surface to unprivileged users.
|
||||||
#user.max_user_namespaces=0
|
#user.max_user_namespaces=0
|
||||||
|
|||||||
@@ -36,4 +36,8 @@ declare -gx PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|||||||
declare -gx IFS=$' \t\n'
|
declare -gx IFS=$' \t\n'
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|
||||||
|
ulimit -c 0
|
||||||
|
sysctl -w fs.suid_dumpable=0 >/dev/null 2>&1
|
||||||
|
sysctl -w kernel.core_pattern='|/bin/false' >/dev/null 2>&1
|
||||||
|
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
Reference in New Issue
Block a user