From e7875f9eb12a05d6861210db4d8636c9d1e0b118 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 9 Sep 2015 01:24:56 +0100 Subject: [PATCH] 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 Gbp-Pq: Name install-headers-with-consistent-mode.patch --- scripts/Kbuild.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install index 93c0396..cab68b1 100644 --- a/scripts/Kbuild.install +++ b/scripts/Kbuild.install @@ -102,7 +102,7 @@ header: ln -sf /usr/include/$(DEB_HOST_MULTIARCH)/asm $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \ fi $(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) -- 2.30.2