Skip to content

Commit 7110d80

Browse files
netoptimizerborkmann
authored andcommitted
libbpf: Makefile set specified permission mode
The third parameter to do_install was not used by $(INSTALL) command. Fix this by only setting the -m option when the third parameter is supplied. The use of a third parameter was introduced in commit eb54e52 ("bpf: install libbpf headers on 'make install'"). Without this change, the header files are install as executables files (755). Fixes: eb54e52 ("bpf: install libbpf headers on 'make install'") Signed-off-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 63c8591 commit 7110d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ define do_install
172172
if [ ! -d '$(DESTDIR_SQ)$2' ]; then \
173173
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \
174174
fi; \
175-
$(INSTALL) $1 '$(DESTDIR_SQ)$2'
175+
$(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR_SQ)$2'
176176
endef
177177

178178
install_lib: all_cmd

0 commit comments

Comments
 (0)