I guess this was ssh_host* for historical reasons (or maybe for OpenSSH), but
dropbear is the more common sshd. This makes preconfigured images (with files
in files/ have the right modes on the ssh host keys).

Signed-off-by: Catalin Patulea <c...@vv.carleton.ca>
---
 include/image.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index 09eda73..62bd423 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -154,7 +154,7 @@ endif
 
 define Image/mkfs/prepare/default
        # Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
-       - $(FIND) $(TARGET_DIR) -type f -not -perm +0100 -not -name 'ssh_host*' 
-not -name 'shadow' -print0 | $(XARGS) -0 chmod u+rw,g+r,o+r
+       - $(FIND) $(TARGET_DIR) -type f -not -perm +0100 -not -name 
'dropbear_*_host_key' -not -name 'shadow' -print0 | $(XARGS) -0 chmod 
u+rw,g+r,o+r
        - $(FIND) $(TARGET_DIR) -type f -perm +0100 -print0 | $(XARGS) -0 chmod 
u+rwx,g+rx,o+rx
        - $(FIND) $(TARGET_DIR) -type d -print0 | $(XARGS) -0 chmod 
u+rwx,g+rx,o+rx
        $(INSTALL_DIR) $(TARGET_DIR)/tmp
-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to