Resolves: #1648667 - add magic for eBPF objects

This commit is contained in:
Kamil Dudka 2018-11-12 16:11:58 +01:00
parent 95318306a7
commit 554e8b4b35
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From b675e1cf6c5f047a1ab52b7dcea3c83ea6aac69f Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
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 <kdudka@redhat.com>
---
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

View File

@ -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 <kdudka@redhat.com> - 5.34-4
- add magic for eBPF objects (#1648667)
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 5.34-3
- Rebuild with fixed binutils