aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2018-11-21 16:01:48 -0800
committerLuis Chamberlain <mcgrof@kernel.org>2018-11-21 16:01:48 -0800
commit4dcafc85e12bf28f30ab00354bba187172b89e3f (patch)
treeef33ae5d317b7cebe8ed18e16998420171eaa8aa
parentd0d549d1c3ca1684b56986ca7e5e73c5ff78a989 (diff)
downloadcrda-4dcafc85e12bf28f30ab00354bba187172b89e3f.tar.gz
crda: be explicit about file permission on install
If you have a umask of 077 your library files won't be accessible to non-root users. Fix that. Reported-by: Lukas Pirl <mail@lukas-pirl.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a3ead30..6169b1f 100644
--- a/Makefile
+++ b/Makefile
@@ -121,12 +121,12 @@ $(LIBREG): regdb.h reglib.h reglib.c
install-libreg-headers:
$(NQ) ' INSTALL libreg-headers'
$(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR)
- $(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/
+ $(Q)$(INSTALL) -m 644 *.h $(DESTDIR)/$(INCLUDE_DIR)/
install-libreg:
$(NQ) ' INSTALL libreg'
$(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
- $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
+ $(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/
$(Q)ldconfig
%.o: %.c regdb.h $(LIBREG)