nuttx-apps/fsutils/passwd/Kconfig
Abhishek Mishra da3234f936 !fsutils/passwd: remove insecure default TEA encryption keys
Use 0 as a Kconfig placeholder. The nuttx build rejects unset keys
and can generate random values when configured.

BREAKING CHANGE: CONFIG_FSUTILS_PASSWD_KEY1..4 no longer default to
0x12345678 / 0x9abcdef0. Configs that relied on those defaults must
set keys manually or enable BOARD_ETC_ROMFS_PASSWD_RANDOMIZE_KEYS in
nuttx. Fix: set keys in menuconfig or enable random key generation.

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-07-06 16:30:13 +08:00

45 lines
971 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config FSUTILS_PASSWD
bool "Password file support"
default n
---help---
Enables support for /etc/passwd file access routines
if FSUTILS_PASSWD
config FSUTILS_PASSWD_PATH
string "Path to the passwd file"
default "/etc/passwd"
config FSUTILS_PASSWD_READONLY
bool "Read-only /etc/passwd file?"
default n
config FSUTILS_PASSWD_IOBUFFER_SIZE
int "Allocated I/O buffer size"
default 512
config FSUTILS_PASSWD_KEY1
hex "Encryption key value 1"
default 0
---help---
Leave at 0 if random key generation is enabled under Board
Selection. Otherwise set all four keys to unique non-zero values.
config FSUTILS_PASSWD_KEY2
hex "Encryption key value 2"
default 0
config FSUTILS_PASSWD_KEY3
hex "Encryption key value 3"
default 0
config FSUTILS_PASSWD_KEY4
hex "Encryption key value 4"
default 0
endif # FSUTILS_PASSWD