dropbear: adjust allowed shell list

this takes an effect only if getusershell(3) is missing

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
This commit is contained in:
Konstantin Demin 2024-01-09 03:40:01 +03:00 committed by Rui Salvaterra
parent 7f6fcaa3bf
commit 88c8053d47

View File

@ -104,6 +104,8 @@ CONFIGURE_ARGS += \
# #
############################################################################## ##############################################################################
# adjust allowed shell list (if getusershell(3) is missing):
# - COMPAT_USER_SHELLS
# remove protocol idented software version number: # remove protocol idented software version number:
# - LOCAL_IDENT # - LOCAL_IDENT
# disable legacy/unsafe methods and unused functionality: # disable legacy/unsafe methods and unused functionality:
@ -114,6 +116,7 @@ CONFIGURE_ARGS += \
# - DROPBEAR_SHA1_HMAC # - DROPBEAR_SHA1_HMAC
DB_OPT_COMMON = \ DB_OPT_COMMON = \
!!LOCAL_IDENT,"SSH-2.0-dropbear" \ !!LOCAL_IDENT,"SSH-2.0-dropbear" \
COMPAT_USER_SHELLS,"/bin/ash","/bin/sh" \
DEFAULT_PATH,"$(TARGET_INIT_PATH)" \ DEFAULT_PATH,"$(TARGET_INIT_PATH)" \
DEFAULT_ROOT_PATH,"$(TARGET_INIT_PATH)" \ DEFAULT_ROOT_PATH,"$(TARGET_INIT_PATH)" \
DROPBEAR_DSS,0 \ DROPBEAR_DSS,0 \