Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947598 - net-misc/dropbear: init.d to skip default keys generation if passed as DROPBEAR_OPTS
Summary: net-misc/dropbear: init.d to skip default keys generation if passed as DROPBE...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-06 09:38 UTC by macmpi
Modified: 2025-01-07 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description macmpi 2025-01-06 09:38:28 UTC
Currently init.d check_config() only checks keys within /etc/dropbear and generate some if missing: this may unnecessarily delay startup (and require write access & storage) when keys are provided by other means.

That check should be escaped if valid keys are supplied within DROPBEAR_OPTS -r parameter.

Reproducible: Always

Steps to Reproduce:
1. add "-r path/to/key" in DROPBEAR_OPTS
2. start dropbear
Actual Results:  
New keys are generated in /etc/dropbear

Expected Results:  
No keys are generated if supplied keys are supported.