Skip to contentSkip to conversation

libtracefs: Do not install header as executable

PATCH New Steven Rostedt 1 participant 1 message Dec 23, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Do not install header as executable

From: "Steven Rostedt (VMware)" <[email protected]>

By default, install will set the mode of the files it installs as rwxr-xr-x, but headers should not be executable. Set its mode to rw-r--r--.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210873

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 5861d1f..10e78f6 100644
@@ -244,7 +244,7 @@ endif # DESTDIR = ""
 install_libs: libs install_pkgconfig
 	$(Q)$(call do_install,$(LIBTRACEFS_SHARED),$(libdir_SQ)); \
 		cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ)
-	$(Q)$(call do_install,$(src)/include/tracefs.h,$(includedir_SQ))
+	$(Q)$(call do_install,$(src)/include/tracefs.h,$(includedir_SQ),644)
 	$(Q)$(call install_ld_config)
 
 install: install_libs
Signature · 1 line
2.25.4