[klibc] [klibc:master] Install headers with consistent mode

klibc-bot for Ben Hutchings ben at decadent.org.uk
Tue Jan 5 17:54:07 PST 2016

Commit-ID:  547065c81db978d1c3ddd26d495dd7d29fa9bcca
Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=547065c81db978d1c3ddd26d495dd7d29fa9bcca
Author:     Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Wed, 6 Jan 2016 01:19:55 +0000
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Tue, 5 Jan 2016 17:50:46 -0800

[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 at decadent.org.uk>
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

 scripts/Kbuild.install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install
index 78c30aa..8af5697 100644
--- a/scripts/Kbuild.install
+++ b/scripts/Kbuild.install
@@ -97,7 +97,7 @@ header:
 	$(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)

More information about the klibc mailing list