From: Florian Fainelli Date: Sun, 15 Oct 2006 23:03:46 +0000 (+0000) Subject: Prevent SSH keys from being chmoded to 644 (#664), looks like those are the only... X-Git-Tag: whiterussian_rc6~82 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e403f7a73bd98687a5457cbcf513f609a11e1593;p=openwrt%2Fsvn-archive%2Fopenwrt.git Prevent SSH keys from being chmoded to 644 (#664), looks like those are the only files concerned for now SVN-Revision: 5135 --- 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