From 0c6585f6d3284fc9bbc1336729b919de53b90b77 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Nov 12 2018 15:17:59 +0000 Subject: Resolves: #1648667 - add magic for eBPF objects --- diff --git a/file-5.34-ebpf-magic.patch b/file-5.34-ebpf-magic.patch new file mode 100644 index 0000000..abcadf8 --- /dev/null +++ b/file-5.34-ebpf-magic.patch @@ -0,0 +1,26 @@ +From b675e1cf6c5f047a1ab52b7dcea3c83ea6aac69f Mon Sep 17 00:00:00 2001 +From: Christos Zoulas +Date: Fri, 9 Nov 2018 17:51:12 +0000 +Subject: [PATCH] Add eBPF magic from Matteo Croce + +Upstream-commit: 4cf4e817457ce6ca32452a7c80b27e96be6441dc +Signed-off-by: Kamil Dudka +--- + magic/Magdir/elf | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/magic/Magdir/elf b/magic/Magdir/elf +index 133bd1f..7c6011c 100644 +--- a/magic/Magdir/elf ++++ b/magic/Magdir/elf +@@ -263,6 +263,7 @@ + >18 leshort 217 iCelero CoolEngine, + >18 leshort 218 Nanoradio Optimized RISC, + >18 leshort 243 UCB RISC-V, ++>18 leshort 247 eBPF, + >18 leshort 0x1057 AVR (unofficial), + >18 leshort 0x1059 MSP430 (unofficial), + >18 leshort 0x1223 Adapteva Epiphany (unofficial), +-- +2.17.2 + diff --git a/file.spec b/file.spec index 2b28901..0a32004 100644 --- a/file.spec +++ b/file.spec @@ -15,7 +15,7 @@ Summary: A utility for determining file types Name: file Version: 5.33 -Release: 8%{?dist} +Release: 9%{?dist} License: BSD Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -46,6 +46,9 @@ Patch8: file-5.33-ppc-swap.patch # fix memory leak on an error path Patch9: file-5.33-covscan.patch +# add magic for eBPF objects (#1648667) +Patch10: file-5.34-ebpf-magic.patch + URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} BuildRequires: zlib-devel @@ -216,6 +219,9 @@ cd %{py3dir} %endif %changelog +* Mon Nov 12 2018 Kamil Dudka - 5.34-9 +- add magic for eBPF objects (#1648667) + * Mon Nov 05 2018 Kamil Dudka - 5.33-8 - fix memory leak on an error path