Skip to contentSkip to conversation

keytable: do not install bpf protocols decoders with execute permission

PATCH New Sean Young 1 participant 1 message Nov 23, 2018 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 1/1 keytable: do not install bpf protocols decoders with execute permission

The rpm packaging system will try to extract debug information, which fails since there is no build id. This can be avoided by removing the execute permission.

BPF relocatable files are executable anyway so this is the right thing to do.

See:
https://github.com/rpm-software-management/rpm/pull/604

---
 utils/keytable/bpf_protocols/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/keytable/bpf_protocols/Makefile.am +1 -1
index 1b90411b..d1f04cb4 100644
@@ -21,4 +21,4 @@ EXTRA_DIST = $(PROTOCOLS:%.o=%.c) bpf_helpers.h
 install-data-local:
 	$(install_sh) -d "$(DESTDIR)$(keytableuserdir)/protocols"
 	$(install_sh) -d "$(DESTDIR)$(keytablesystemdir)/protocols"
-	$(install_sh) $(PROTOCOLS) "$(DESTDIR)$(keytablesystemdir)/protocols"
+	$(install_sh) -m 0644 $(PROTOCOLS) "$(DESTDIR)$(keytablesystemdir)/protocols"
Signature · 1 line
2.19.1