vm_hardenning embryo
This commit is contained in:
34
modules/vm_hardenning.sh
Normal file
34
modules/vm_hardenning.sh
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Hardenning for VM/Cloud kind of machine
|
||||||
|
# This file is part of the init.sh project
|
||||||
|
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# This file is distributed under 3-clause BSD license.
|
||||||
|
# The complete license agreement can be obtained at:
|
||||||
|
# https://opensource.org/licenses/BSD-3-Clause
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Variables:
|
||||||
|
# * WITH_ROUTING: if yes, kernel routing capabilities will not be disabled
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export VER_vm_hardenning="0.0.1"
|
||||||
|
|
||||||
|
vm_hardenning()
|
||||||
|
{
|
||||||
|
prnt I "Installing VM/Cloud kernel..."
|
||||||
|
pkginst linux-image-cloud-amd64
|
||||||
|
|
||||||
|
if [[ $WITH_ROUTING == yes ]]; then
|
||||||
|
# do it!
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
precheck_vm_hardenning()
|
||||||
|
{
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
export -f vm_hardenning
|
||||||
|
export -f precheck_vm_hardenning
|
||||||
|
|
||||||
|
# EOF
|
||||||
Reference in New Issue
Block a user