From 554e8b4b35d7c4856366f7b7564b2302c8e02467 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 12 Nov 2018 16:11:58 +0100 Subject: [PATCH] Resolves: #1648667 - add magic for eBPF objects --- file-5.34-ebpf-magic.patch | 26 ++++++++++++++++++++++++++ file.spec | 8 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 file-5.34-ebpf-magic.patch 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 668ee44..b712446 100644 --- a/file.spec +++ b/file.spec @@ -15,7 +15,7 @@ Summary: A utility for determining file types Name: file Version: 5.34 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -29,6 +29,9 @@ Patch2: file-5.04-volume_key.patch # fix printing of details about ELF binaries Patch3: file-5.34-readelf.patch +# add magic for eBPF objects (#1648667) +Patch4: file-5.34-ebpf-magic.patch + URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} BuildRequires: zlib-devel @@ -205,6 +208,9 @@ cd %{py3dir} %endif %changelog +* Mon Nov 12 2018 Kamil Dudka - 5.34-4 +- add magic for eBPF objects (#1648667) + * Tue Jul 31 2018 Florian Weimer - 5.34-3 - Rebuild with fixed binutils