aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-01-06 01:19:55 +0000
committerH. Peter Anvin <hpa@linux.intel.com>2016-01-05 17:50:46 -0800
commit547065c81db978d1c3ddd26d495dd7d29fa9bcca (patch)
tree64519126932913b36d3477e0f4eb1a59ea1eeec2
parent76e7a4a89826c76b9ebbe9d6015ab16aadbe3dcd (diff)
downloadklibc-547065c81db978d1c3ddd26d495dd7d29fa9bcca.tar.gz
[klibc] Install headers with consistent mode
Currently we ensure the installed headers are readable by everyone, but write permissions will depend on the current umask. Turn off the group and other writable bits to ensure consistent results. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--scripts/Kbuild.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install
index 78c30aae0edd6..8af569777cc32 100644
--- a/scripts/Kbuild.install
+++ b/scripts/Kbuild.install
@@ -97,7 +97,7 @@ header:
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
$(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
$(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
- $(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
+ $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
$(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
$(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)