Skip to content

Damcav35/deb12 scripts 19#320

Open
damcav35 wants to merge 2 commits intomasterfrom
damcav35/deb12_scripts_19
Open

Damcav35/deb12 scripts 19#320
damcav35 wants to merge 2 commits intomasterfrom
damcav35/deb12_scripts_19

Conversation

@damcav35
Copy link
Contributor

No description provided.

PATTERN_ANY="^${OPTION}[[:space:]]"

# Assume OK initially
SSHD_GSSAPI_OPTION_OK=0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be the case

local found_correct=0

# Check main config file
does_pattern_exist_in_file_nocase "$FILE" "$PATTERN_ANY"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be done in only one if

for include_dir in $(grep -E "^Include" "$FILE" | awk '{print $2}'); do
# Expand the path if it contains wildcards
for conf_file in ${include_dir}; do
if [ -f "$conf_file" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

return
fi

# Assume config is OK, set to failure if any check fails
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no this needs to be inverted

status=audit
# Configuration for script: $SCRIPT_NAME
# Put your authorized NTP time servers here (space-separated)
NTP_SERVERS='time.nist.gov time.google.com'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more public NTP server, nist and google cannot be commited like this

@damcav35 damcav35 force-pushed the damcav35/deb12_scripts_19 branch 2 times, most recently from 33ec2eb to 4d5be1e Compare February 27, 2026 10:16
damien cavagnini added 2 commits February 27, 2026 12:10
bin/hardening/sshd_disable_gssapi.sh                    -> 5.1.9
bin/hardening/timesyncd_authorized_server.sh            -> 2.3.2.1
bin/hardening/chrony_authorized_server.sh               -> 2.3.3.1
bin/hardening/dev_shm_nodev.sh                          -> 1.1.2.2.2
bin/hardening/dev_shm_noexec.sh                         -> 1.1.2.2.4
bin/hardening/dev_shm_nosuid.sh                         -> 1.1.2.2.3
@damcav35 damcav35 force-pushed the damcav35/deb12_scripts_19 branch from 4d5be1e to c54a90e Compare February 27, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants