From e403f7a73bd98687a5457cbcf513f609a11e1593 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 15 Oct 2006 23:03:46 +0000 Subject: [PATCH] Prevent SSH keys from being chmoded to 644 (#664), looks like those are the only files concerned for now SVN-Revision: 5135 --- openwrt/target/linux/image/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/target/linux/image/Makefile b/openwrt/target/linux/image/Makefile index 566afc30ef..4b0bcd38d7 100644 --- a/openwrt/target/linux/image/Makefile +++ b/openwrt/target/linux/image/Makefile @@ -22,7 +22,7 @@ install-ib: cp $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ install-prepare: - find $(KDIR)/root -type f -not -perm +0100 | xargs chmod 0644 + find $(KDIR)/root -type f -not -perm +0100 -not -name 'ssh_host*' | xargs chmod 0644 find $(KDIR)/root -type f -perm +0100 | xargs chmod 0755 find $(KDIR)/root -type d | xargs chmod 0755 chmod 0777 $(KDIR)/root/tmp -- 2.30.2