Add 0-8 as shortcuts for jumping to menu items in the hardening menu.

Submitted by:	skreuzer
Reviewed by:	allanjude, robak
Approved by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D6826
This commit is contained in:
Bartek Rutkowski 2017-02-16 19:58:02 +00:00
parent 09ae7c4814
commit 955255728c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313815

View File

@ -33,18 +33,18 @@ echo -n > $BSDINSTALL_TMPETC/sysctl.conf.hardening
exec 3>&1
FEATURES=$( dialog --backtitle "FreeBSD Installer" \
--title "System Hardening" --nocancel --notags --separate-output \
--title "System Hardening" --nocancel --separate-output \
--checklist "Choose system security hardening options:" \
0 0 0 \
"hide_uids" "Hide processes running as other users" ${hide_uids:-off} \
"hide_gids" "Hide processes running as other groups" ${hide_gids:-off} \
"read_msgbuf" "Disable reading kernel message buffer for unprivileged users" ${read_msgbuf:-off} \
"proc_debug" "Disable process debugging facilities for unprivileged users" ${proc_debug:-off} \
"random_pid" "Randomize the PID of newly created processes" ${random_pid:-off} \
"stack_guard" "Insert stack guard page ahead of the growable segments" ${stack_guard:-off} \
"clear_tmp" "Clean the /tmp filesystem on system startup" ${clear_tmp:-off} \
"disable_syslogd" "Disable opening Syslogd network socket (disables remote logging)" ${disable_syslogd:-off} \
"disable_sendmail" "Disable Sendmail service" ${disable_sendmail:-off} \
"0 hide_uids" "Hide processes running as other users" ${hide_uids:-off} \
"1 hide_gids" "Hide processes running as other groups" ${hide_gids:-off} \
"2 read_msgbuf" "Disable reading kernel message buffer for unprivileged users" ${read_msgbuf:-off} \
"3 proc_debug" "Disable process debugging facilities for unprivileged users" ${proc_debug:-off} \
"4 random_pid" "Randomize the PID of newly created processes" ${random_pid:-off} \
"5 stack_guard" "Insert stack guard page ahead of the growable segments" ${stack_guard:-off} \
"6 clear_tmp" "Clean the /tmp filesystem on system startup" ${clear_tmp:-off} \
"7 disable_syslogd" "Disable opening Syslogd network socket (disables remote logging)" ${disable_syslogd:-off} \
"8 disable_sendmail" "Disable Sendmail service" ${disable_sendmail:-off} \
2>&1 1>&3 )
exec 3>&-