mirror of
https://github.com/ovh/debian-cis.git
synced 2025-03-26 22:02:28 +01:00
IMP(shellcheck): add prefix to define shell (SC2148)
This commit is contained in:
parent
c17d04ecc2
commit
4add6ddc33
lib
tests/hardening
1.1.1.1_disable_freevxfs.sh1.1.1.2_disable_jffs2.sh1.1.1.3_disable_hfs.sh1.1.1.4_disable_hfsplus.sh1.1.1.5_disable_udf.sh1.1.1.6_disable_cramfs.sh1.1.1.7_disable_squashfs.sh1.1.10_var_tmp_noexec.sh1.1.11_var_log_partition.sh1.1.12_var_log_audit_partition.sh1.1.13_home_partition.sh1.1.14_home_nodev.sh1.1.15_run_shm_nodev.sh1.1.16_run_shm_nosuid.sh1.1.17_run_shm_noexec.sh1.1.18_removable_device_nodev.sh1.1.19_removable_device_nosuid.sh1.1.20_removable_device_noexec.sh1.1.21_sticky_bit_world_writable_folder.sh1.1.22_disable_automounting.sh1.1.2_tmp_partition.sh1.1.3_tmp_nodev.sh1.1.4_tmp_nosuid.sh1.1.5_tmp_noexec.sh1.1.6_var_partition.sh1.1.7_var_tmp_partition.sh1.1.8_var_tmp_nodev.sh1.1.9_var_tmp_nosuid.sh1.4.1_bootloader_ownership.sh1.4.2_bootloader_password.sh1.4.3_root_password.sh1.5.1_restrict_core_dumps.sh1.5.2_enable_nx_support.sh1.5.3_enable_randomized_vm_placement.sh1.5.4_disable_prelink.sh1.6.2.1_enable_apparmor.sh1.7.1.1_remove_os_info_motd.sh1.7.1.2_remove_os_info_issue.sh1.7.1.3_remove_os_info_issue_net.sh1.7.1.4_motd_perms.sh1.7.2_graphical_warning_banners.sh1.8_install_updates.sh2.1.1_disable_xinetd.sh2.2.1.1_use_time_sync.sh2.2.1.2_configure_ntp.sh2.2.1.3_configure_chrony.sh2.2.10_disable_http_server.sh2.2.11_disable_imap_pop.sh2.2.12_disable_samba.sh2.2.13_disable_http_proxy.sh2.2.14_disable_snmp_server.sh2.2.15_mta_localhost.sh2.2.16_disable_rsync.sh2.2.18_disable_telnet_server.sh2.2.2_disable_xwindow_system.sh2.2.3_disable_avahi_server.sh2.2.4_disable_print_server.sh2.2.5_disable_dhcp.sh2.2.6_disable_ldap.sh2.2.7_disable_nfs_rpc.sh2.2.8_disable_dns_server.sh2.2.9_disable_ftp.sh2.3.1_disable_nis.sh2.3.2_disable_rsh_client.sh2.3.3_disable_talk_client.sh2.3.4_disable_telnet_client.sh2.3.5_disable_ldap_client.sh3.1.1_disable_ip_forwarding.sh3.1.2_disable_send_packet_redirects.sh3.2.1_disable_source_routed_packets.sh3.2.2_disable_icmp_redirect.sh3.2.3_disable_secure_icmp_redirect.sh3.2.4_log_martian_packets.sh3.2.5_ignore_broadcast_requests.sh3.2.6_enable_bad_error_message_protection.sh3.2.7_enable_source_route_validation.sh3.2.8_enable_tcp_syn_cookies.sh3.2.9_disable_ipv6_router_advertisement.sh3.3.1_install_tcp_wrapper.sh3.3.2_hosts_allow.sh3.3.3_hosts_deny.sh3.3.4_hosts_allow_permissions.sh3.3.5_hosts_deny_permissions.sh3.4.1_disable_dccp.sh3.4.2_disable_sctp.sh3.4.3_disable_rds.sh3.4.4_disable_tipc.sh3.5.1.1_net_fw_default_policy_drop.sh3.5_enable_firewall.sh3.6_disable_wireless.sh3.7_disable_ipv6.sh4.1.1.1_audit_log_storage.sh4.1.1.2_halt_when_audit_log_full.sh4.1.1.3_keep_all_audit_logs.sh4.1.10_record_dac_edit.sh4.1.11_record_failed_access_file.sh
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# CIS Debian Hardening common functions
|
||||
|
||||
# run-shellcheck
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# Defines constants for CIS Debian Hardening
|
||||
|
||||
# run-shellcheck
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
|
||||
LONG_SCRIPT_NAME=$(basename $0)
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# CIS Debian Hardening Utility functions
|
||||
|
||||
# run-shellcheck
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
# Make all variable local to the function by using `local`
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user