linux revision 328875
134689Sbde
250476Speter#------------------------------------------------------------------------------
31573Srgrimes# $File: linux,v 1.64 2017/03/17 21:35:28 christos Exp $
4156813Sru# linux:  file(1) magic for Linux files
5156813Sru#
634689Sbde# Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
734689Sbde# The following basic Linux magic is useful for reference, but using
834689Sbde# "long" magic is a better practice in order to avoid collisions.
938752Sbde#
10173017Sru# 2	leshort		100		Linux/i386
11186647Srwatson# >0	leshort		0407		impure executable (OMAGIC)
12204738Simp# >0	leshort		0410		pure executable (NMAGIC)
13204738Simp# >0	leshort		0413		demand-paged executable (ZMAGIC)
1481133Stmm# >0	leshort		0314		demand-paged executable (QMAGIC)
1559897Sjoe#
1679471Smarkm0	lelong		0x00640107	Linux/i386 impure executable (OMAGIC)
17166131Srafan>16	lelong		0		\b, stripped
18122568Sharti0	lelong		0x00640108	Linux/i386 pure executable (NMAGIC)
1959353Skris>16	lelong		0		\b, stripped
2041257Sjdp0	lelong		0x0064010b	Linux/i386 demand-paged executable (ZMAGIC)
2182355Smarkm>16	lelong		0		\b, stripped
2294690Sdes0	lelong		0x006400cc	Linux/i386 demand-paged executable (QMAGIC)
2341257Sjdp>16	lelong		0		\b, stripped
2456081Sbde#
2594690Sdes0	string		\007\001\000	Linux/i386 object file
26181344Sdfr>20	lelong		>0x1020		\b, DLL library
2734689Sbde# Linux-8086 stuff:
2834689Sbde0	string		\01\03\020\04	Linux-8086 impure executable
29204738Simp>28	long		!0		not stripped
30204738Simp0	string		\01\03\040\04	Linux-8086 executable
3134689Sbde>28	long		!0		not stripped
32205113Simp#
33205113Simp0	string		\243\206\001\0	Linux-8086 object file
34205113Simp#
35205113Simp0	string		\01\03\020\20	Minix-386 impure executable
36205113Simp>28	long		!0		not stripped
37205113Simp0	string		\01\03\040\20	Minix-386 executable
38205113Simp>28	long		!0		not stripped
39205113Simp0	string		\01\03\04\20	Minix-386 NSYM/GNU executable
40205113Simp>28	long		!0		not stripped
41205113Simp# core dump file, from Bill Reynolds <bill@goshawk.lanl.gov>
42205113Simp216	lelong		0421		Linux/i386 core file
43205113Simp!:strength / 2
44205113Simp>220	string		>\0		of '%s'
45205113Simp>200	lelong		>0		(signal %d)
46205113Simp#
47205113Simp# LILO boot/chain loaders, from Daniel Quinlan <quinlan@yggdrasil.com>
48205113Simp# this can be overridden by the DOS executable (COM) entry
49205113Simp2	string		LILO		Linux/i386 LILO boot/chain loader
50205113Simp#
51205113Simp# Linux make config build file, from Ole Aamot <oka@oka.no>
52205113Simp# Updated by Ken Sharp
53205113Simp28	string		make\ config		Linux make config build file (old)
54205113Simp49	search/70	Kernel\ Configuration	Linux make config build file
55205113Simp
56205113Simp#
57205113Simp# PSF fonts, from H. Peter Anvin <hpa@yggdrasil.com>
58205113Simp# Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
59205113Simp# See: http://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
60205113Simp0	leshort		0x0436		Linux/i386 PC Screen Font v1 data,
61205113Simp>2	byte&0x01	0		256 characters,
62205113Simp>2	byte&0x01	!0		512 characters,
63205113Simp>2	byte&0x02	0		no directory,
64205113Simp>2	byte&0x02	!0		Unicode directory,
65205113Simp>3	byte		>0		8x%d
66205113Simp0	string		\x72\xb5\x4a\x86\x00\x00 Linux/i386 PC Screen Font v2 data,
67205113Simp>16	lelong		x		%d characters,
68205113Simp>12	lelong&0x01	0		no directory,
69205113Simp>12	lelong&0x01	!0		Unicode directory,
70205113Simp>24	lelong		x		%d
71205113Simp>28	lelong		x		\bx%d
72205113Simp
73205113Simp# Linux swap file, from Daniel Quinlan <quinlan@yggdrasil.com>
74205113Simp4086	string		SWAP-SPACE	Linux/i386 swap file
75205113Simp# From: Jeff Bailey <jbailey@ubuntu.com>
76205113Simp# Linux swap file with swsusp1 image, from Jeff Bailey <jbailey@ubuntu.com>
77205113Simp4076	string		SWAPSPACE2S1SUSPEND	Linux/i386 swap file (new style) with SWSUSP1 image
78205113Simp# From: James Hunt <james.hunt@ubuntu.com>
79207842Smm4076    string          SWAPSPACE2LINHIB0001    Linux/i386 swap file (new style) (compressed hibernate)
80205113Simp# according to man page of mkswap (8) March 1999
81205113Simp# volume label and UUID Russell Coker
82205113Simp# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
83205113Simp4086	string		SWAPSPACE2	Linux/i386 swap file (new style),
84205113Simp>0x400	long		x		version %d (4K pages),
85205113Simp>0x404	long		x		size %d pages,
86205113Simp>1052	string		\0		no label,
87205113Simp>1052	string		>\0		LABEL=%s,
88205113Simp>0x40c	belong		x		UUID=%08x
89207113Sflz>0x410	beshort		x		\b-%04x
90205113Simp>0x412	beshort		x		\b-%04x
91205113Simp>0x414	beshort		x		\b-%04x
92205113Simp>0x416	belong		x		\b-%08x
93205113Simp>0x41a	beshort		x		\b%04x
94205113Simp# From Daniel Novotny <dnovotny@redhat.com>
95205113Simp# swap file for PowerPC
96205113Simp65526	string		SWAPSPACE2	Linux/ppc swap file
97205113Simp16374	string		SWAPSPACE2	Linux/ia64 swap file
98205113Simp#
99205113Simp# Linux kernel boot images, from Albert Cahalan <acahalan@cs.uml.edu>
100205113Simp# and others such as Axel Kohlmeyer <akohlmey@rincewind.chemie.uni-ulm.de>
101205113Simp# and Nicolas Lichtmaier <nick@debian.org>
102205113Simp# All known start with: b8 c0 07 8e d8 b8 00 90 8e c0 b9 00 01 29 f6 29
103205113Simp# Linux kernel boot images (i386 arch) (Wolfram Kleff)
104205113Simp514	string		HdrS		Linux kernel
105205113Simp!:strength + 55
106205113Simp>510	leshort		0xAA55		x86 boot executable
107205113Simp>>518	leshort		>0x1ff
108205113Simp>>>529	byte		0		zImage,
109205113Simp>>>529	byte		1		bzImage,
110205113Simp>>>526	lelong		>0
111208964Srdivacky>>>>(526.s+0x200) string	>\0	version %s,
112208964Srdivacky>>498	leshort		1		RO-rootFS,
11334689Sbde>>498	leshort		0		RW-rootFS,
114103436Speter>>508	leshort		>0		root_dev 0x%X,
115103436Speter>>502	leshort		>0		swap_dev 0x%X,
11672309Sobrien>>504	leshort		>0		RAMdisksize %u KB,
11734689Sbde>>506	leshort		0xFFFF		Normal VGA
11872309Sobrien>>506	leshort		0xFFFE		Extended VGA
11972309Sobrien>>506	leshort		0xFFFD		Prompt for Videomode
1201573Srgrimes>>506	leshort		>0		Video mode %d
1211573Srgrimes# This also matches new kernels, which were caught above by "HdrS".
122183242Ssam0		belong	0xb8c0078e	Linux kernel
123183242Ssam>0x1e3		string	Loading		version 1.3.79 or older
124156813Sru>0x1e9		string	Loading		from prehistoric times
125121340Sharti
126119508Sphk# System.map files - Nicolas Lichtmaier <nick@debian.org>
127119508Sphk8	search/1	\ A\ _text	Linux kernel symbol map text
128156813Sru
129135549Sdes# LSM entries - Nicolas Lichtmaier <nick@debian.org>
13053922Speter0	search/1	Begin3	Linux Software Map entry text
13153922Speter0	search/1	Begin4	Linux Software Map entry text (new format)
132156813Sru
133125123Semax# From Matt Zimmerman, enhanced for v3 by Matthew Palmer
134125123Semax0	belong	0x4f4f4f4d	User-mode Linux COW file
135125123Semax>4	belong	<3		\b, version %d
136131768Semax>>8	string	>\0		\b, backing file %s
137183242Ssam>4	belong	>2		\b, version %d
138183242Ssam>>32	string	>\0		\b, backing file %s
139183242Ssam
140183242Ssam############################################################################
141208964Srdivacky# Linux kernel versions
142208964Srdivacky
143208964Srdivacky0		string		\xb8\xc0\x07\x8e\xd8\xb8\x00\x90	Linux
144208964Srdivacky>497		leshort		0		x86 boot sector
145183242Ssam>>514		belong		0x8e	of a kernel from the dawn of time!
146183242Ssam>>514		belong		0x908ed8b4	version 0.99-1.1.42
147183242Ssam>>514		belong		0x908ed8b8	for memtest86
148183242Ssam
149174548Sru>497		leshort		!0		x86 kernel
150174519Sdougb>>504		leshort		>0		RAMdisksize=%u KB
151181344Sdfr>>502		leshort		>0		swap=0x%X
152174519Sdougb>>508		leshort		>0		root=0x%X
153174519Sdougb>>>498		leshort		1		\b-ro
154156905Sru>>>498		leshort		0		\b-rw
155156905Sru>>506		leshort		0xFFFF		vga=normal
156156905Sru>>506		leshort		0xFFFE		vga=extended
157156905Sru>>506		leshort		0xFFFD		vga=ask
158183242Ssam>>506		leshort		>0		vga=%d
159183242Ssam>>514		belong		0x908ed881	version 1.1.43-1.1.45
160183242Ssam>>514		belong		0x15b281cd
161183242Ssam>>>0xa8e	belong		0x55AA5a5a	version 1.1.46-1.2.13,1.3.0
162183242Ssam>>>0xa99	belong		0x55AA5a5a	version 1.3.1,2
163183242Ssam>>>0xaa3	belong		0x55AA5a5a	version 1.3.3-1.3.30
164183242Ssam>>>0xaa6	belong		0x55AA5a5a	version 1.3.31-1.3.41
165183242Ssam>>>0xb2b	belong		0x55AA5a5a	version 1.3.42-1.3.45
166183242Ssam>>>0xaf7	belong		0x55AA5a5a	version 1.3.46-1.3.72
167183242Ssam>>514		string		HdrS
168183242Ssam>>>518		leshort		>0x1FF
169183242Ssam>>>>529		byte		0		\b, zImage
170131768Semax>>>>529		byte		1		\b, bzImage
171156905Sru>>>>(526.s+0x200) string 	>\0		\b, version %s
17252228Sbp
173156905Sru# Linux boot sector thefts.
17487960Ssheldonh0		belong		0xb8c0078e	Linux
17534689Sbde>0x1e6		belong		0x454c4b53	ELKS Kernel
17636026Sjb>0x1e6		belong		!0x454c4b53	style boot sector
17734689Sbde
178161524Smarcel############################################################################
179203181Smarcel# Linux S390 kernel image
180161524Smarcel# Created by: Jan Kaluza <jkaluza@redhat.com>
181161524Smarcel8 string \x02\x00\x00\x18\x60\x00\x00\x50\x02\x00\x00\x68\x60\x00\x00\x50\x40\x40\x40\x40\x40\x40\x40\x40 Linux S390
182161524Smarcel>0x00010000 search/b/4096 \x00\x0a\x00\x00\x8b\xad\xcc\xcc
183117950Speter# 64bit
184156905Sru>>&0 string \xc1\x00\xef\xe3\xf0\x68\x00\x00 Z10 64bit kernel
185117950Speter>>&0 string \xc1\x00\xef\xc3\x00\x00\x00\x00 Z9-109 64bit kernel
186156905Sru>>&0 string \xc0\x00\x20\x00\x00\x00\x00\x00 Z990 64bit kernel
187117950Speter>>&0 string \x00\x00\x00\x00\x00\x00\x00\x00 Z900 64bit kernel
188197025Sdelphij# 32bit
189118694Sdeischen>>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z10 32bit kernel
190118694Sdeischen>>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z9-109 32bit kernel
191150314Simura>>&0 string \x80\x00\x20\x00\x00\x00\x00\x00 Z990 32bit kernel
192150314Simura>>&0 string \x80\x00\x00\x00\x00\x00\x00\x00 Z900 32bit kernel
193150314Simura
194150314Simura# Linux ARM compressed kernel image
195202982Syongari# From: Kevin Cernekee <cernekee@gmail.com>
196202982Syongari36	lelong	0x016f2818	Linux kernel ARM boot executable zImage (little-endian)
197202982Syongari36	belong	0x016f2818	Linux kernel ARM boot executable zImage (big-endian)
198202982Syongari
199183242Ssam############################################################################
200183242Ssam# Linux 8086 executable
201117797Smtm0	lelong&0xFF0000FF 0xC30000E9	Linux-Dev86 executable, headerless
202117797Smtm>5	string		.
203183242Ssam>>4	string		>\0		\b, libc version %s
204183242Ssam
205129225Scognet0	lelong&0xFF00FFFF 0x4000301	Linux-8086 executable
206129225Scognet>2	byte&0x01	!0		\b, unmapped zero page
207207113Sflz>2	byte&0x20	0		\b, impure
208207113Sflz>2	byte&0x20	!0
209207113Sflz>>2	byte&0x10	!0		\b, A_EXEC
210207113Sflz>2	byte&0x02	!0		\b, A_PAL
211183242Ssam>2	byte&0x04	!0		\b, A_NSYM
212183242Ssam>2	byte&0x08	!0		\b, A_STAND
213183242Ssam>2	byte&0x40	!0		\b, A_PURE
214183242Ssam>2	byte&0x80	!0		\b, A_TOVLY
215183242Ssam>28     long            !0              \b, not stripped
216126799Sphk>37	string		.
217126799Sphk>>36	string		>\0		\b, libc version %s
218183242Ssam
219183242Ssam# 0	lelong&0xFF00FFFF 0x10000301	ld86 I80386 executable
220141403Sphk# 0	lelong&0xFF00FFFF 0xB000301	ld86 M68K executable
221141403Sphk# 0	lelong&0xFF00FFFF 0xC000301	ld86 NS16K executable
222183242Ssam# 0	lelong&0xFF00FFFF 0x17000301	ld86 SPARC executable
223183242Ssam
224189589Sthompsa# SYSLINUX boot logo files (from 'ppmtolss16' sources)
225183242Ssam# http://www.syslinux.org/wiki/index.php/SYSLINUX#Display_graphic_from_filename:
226183242Ssam# file extension .lss .16
2271573Srgrimes0	lelong	=0x1413f33d		SYSLINUX' LSS16 image data
228# syslinux-4.05/mime/image/x-lss16.xml
229!:mime image/x-lss16
230>4	leshort	x			\b, width %d
231>6	leshort	x			\b, height %d
232
2330	string	OOOM			User-Mode-Linux's Copy-On-Write disk image
234>4	belong	x			version %d
235
236# SE Linux policy database
237# From: Mike Frysinger <vapier@gentoo.org>
2380	lelong	0xf97cff8c		SE Linux policy
239>16	lelong	x			v%d
240>20	lelong	1			MLS
241>24	lelong	x			%d symbols
242>28	lelong	x			%d ocons
243
244# Linux Logical Volume Manager (LVM)
245# Emmanuel VARAGNAT <emmanuel.varagnat@guzu.net>
246#
247# System ID, UUID and volume group name are 128 bytes long
248# but they should never be full and initialized with zeros...
249#
250# LVM1
251#
2520x0	string	HM\001		LVM1 (Linux Logical Volume Manager), version 1
253>0x12c	string	>\0		, System ID: %s
254
2550x0	string	HM\002		LVM1 (Linux Logical Volume Manager), version 2
256>0x12c	string	>\0		, System ID: %s
257
258#  LVM2
259#
260# It seems that the label header can be in one the four first sector
261# of the disk... (from _find_labeller in lib/label/label.c of LVM2)
262#
263# 0x200 seems to be the common case
264
2650x218           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
266# read the offset to add to the start of the header, and the header
267# start in 0x200
268>&(&-12.l-0x21) byte    x
269# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
270>>&0x0          string  >\x2f          \b, UUID: %.6s
271>>&0x6          string  >\x2f          \b-%.4s
272>>&0xa          string  >\x2f          \b-%.4s
273>>&0xe          string  >\x2f          \b-%.4s
274>>&0x12         string  >\x2f          \b-%.4s
275>>&0x16         string  >\x2f          \b-%.4s
276>>&0x1a         string  >\x2f          \b-%.6s
277>>&0x20         lequad  x              \b, size: %lld
278
2790x018           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
280>&(&-12.l-0x21) byte    x
281# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
282>>&0x0          string  >\x2f          \b, UUID: %.6s
283>>&0x6          string  >\x2f          \b-%.4s
284>>&0xa          string  >\x2f          \b-%.4s
285>>&0xe          string  >\x2f          \b-%.4s
286>>&0x12         string  >\x2f          \b-%.4s
287>>&0x16         string  >\x2f          \b-%.4s
288>>&0x1a         string  >\x2f          \b-%.6s
289>>&0x20         lequad  x              \b, size: %lld
290
2910x418           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
292>&(&-12.l-0x21) byte    x
293# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
294>>&0x0          string  >\x2f          \b, UUID: %.6s
295>>&0x6          string  >\x2f          \b-%.4s
296>>&0xa          string  >\x2f          \b-%.4s
297>>&0xe          string  >\x2f          \b-%.4s
298>>&0x12         string  >\x2f          \b-%.4s
299>>&0x16         string  >\x2f          \b-%.4s
300>>&0x1a         string  >\x2f          \b-%.6s
301>>&0x20         lequad  x              \b, size: %lld
302
3030x618           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
304>&(&-12.l-0x21) byte    x
305# display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
306>>&0x0          string  >\x2f          \b, UUID: %.6s
307>>&0x6          string  >\x2f          \b-%.4s
308>>&0xa          string  >\x2f          \b-%.4s
309>>&0xe          string  >\x2f          \b-%.4s
310>>&0x12         string  >\x2f          \b-%.4s
311>>&0x16         string  >\x2f          \b-%.4s
312>>&0x1a         string  >\x2f          \b-%.6s
313>>&0x20         lequad  x              \b, size: %lld
314
315# LVM snapshot
316# from Jason Farrel
3170	string	SnAp	LVM Snapshot (CopyOnWrite store)
318>4	lelong	!0	- valid,
319>4	lelong	0	- invalid,
320>8	lelong	x	version %d,
321>12	lelong	x	chunk_size %d
322
323# SE Linux policy database
3240	lelong	0xf97cff8c		SE Linux policy
325>16	lelong	x			v%d
326>20	lelong	1			MLS
327>24	lelong	x			%d symbols
328>28	lelong	x			%d ocons
329
330# LUKS: Linux Unified Key Setup, On-Disk Format, http://luks.endorphin.org/spec
331# Anthon van der Neut (anthon@mnt.org)
3320	string	LUKS\xba\xbe	LUKS encrypted file,
333>6	beshort x		ver %d
334>8	string	x		[%s,
335>40	string	x		%s,
336>72	string	x		%s]
337>168	string	x		UUID: %s
338
339
340# Summary: Xen saved domain file
341# Created by: Radek Vokal <rvokal@redhat.com>
3420	string		LinuxGuestRecord	Xen saved domain
343>20	search/256	(name
344>>&1	string		x			(name %s)
345
346# Type: Xen, the virtual machine monitor
347# From: Radek Vokal <rvokal@redhat.com>
3480	string		LinuxGuestRecord	Xen saved domain
349#>2	regex		\(name\ [^)]*\)		%s
350>20	search/256	(name			(name
351>>&1	string		x			%s...)
352
353# Systemd journald files
354# See http://www.freedesktop.org/wiki/Software/systemd/journal-files/.
355# From: Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>
356
357# check magic
3580	string	LPKSHHRH
359# check that state is one of known values
360>16		ubyte&252	0
361# check that each half of three unique id128s is non-zero
362>>24		ubequad		>0
363>>>32		ubequad		>0
364>>>>40		ubequad		>0
365>>>>>48		ubequad		>0
366>>>>>>56	ubequad		>0
367>>>>>>>64	ubequad		>0	Journal file
368!:mime application/octet-stream
369# provide more info
370>>>>>>>>184	leqdate		0	empty
371>>>>>>>>16	ubyte		0	\b, offline
372>>>>>>>>16	ubyte		1	\b, online
373>>>>>>>>16	ubyte		2	\b, archived
374>>>>>>>>8	ulelong&1	1	\b, sealed
375>>>>>>>>12	ulelong&1	1	\b, compressed
376
377# BCache backing and cache devices
378# From: Gabriel de Perthuis <g2p.code@gmail.com>
3790x1008		lequad		8
380>0x1018		string		\xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81	BCache
381>>0x1010	ulequad		0	cache device
382>>0x1010	ulequad		1	backing device
383>>0x1010	ulequad		3	cache device
384>>0x1010	ulequad		4	backing device
385>>0x1048	string		>0	\b, label "%.32s"
386>>0x1028	ubelong		x	\b, uuid %08x
387>>0x102c	ubeshort	x	\b-%04x
388>>0x102e	ubeshort	x	\b-%04x
389>>0x1030	ubeshort	x	\b-%04x
390>>0x1032	ubelong		x	\b-%08x
391>>0x1036	ubeshort	x	\b%04x
392>>0x1038	ubelong		x	\b, set uuid %08x
393>>0x103c	ubeshort	x	\b-%04x
394>>0x103e	ubeshort	x	\b-%04x
395>>0x1040	ubeshort	x	\b-%04x
396>>0x1042	ubelong		x	\b-%08x
397>>0x1046	ubeshort	x	\b%04x
398
399# Linux device tree:
400# File format description can be found in the Linux kernel sources at
401# Documentation/devicetree/booting-without-of.txt
402# From Christoph Biedl
4030		belong		0xd00dfeed
404# structure and strings must be within blob
405>&(8.L)		byte		x
406>>&(12.L)	byte		x
407>>>20		belong		>1	Device Tree Blob version %d
408>>>>4		belong		x	\b, size=%d
409>>>>20		belong		>1
410>>>>>28		belong		x	\b, boot CPU=%d
411>>>>20		belong		>2
412>>>>>32		belong		x	\b, string block size=%d
413>>>>20		belong		>16
414>>>>>36		belong		x	\b, DT structure block size=%d
415
416# glibc locale archive as defined in glibc locale/locarchive.h
4170		lelong		0xde020109	locale archive
418>24		lelong		x		%d strings
419
420# Linux Software RAID (mdadm)
421# Russell Coker <russell@coker.com.au>
4220	name	linuxraid
423>16	belong	x		UUID=%8x:
424>20	belong	x		\b%8x:
425>24	belong	x		\b%8x:
426>28	belong	x		\b%8x
427>32	string	x		name=%s
428>72	lelong	x		level=%d
429>92	lelong	x		disks=%d
430
4314096	lelong	0xa92b4efc	Linux Software RAID
432>4100	lelong	x		version 1.2 (%d)
433>4096	use	linuxraid
434
4350	lelong	0xa92b4efc	Linux Software RAID
436>4	lelong	x		version 1.1 (%d)
437>0	use	linuxraid
438
439# Summary:     Database file for mlocate
440# Description: A database file as used by mlocate, a fast implementation
441#              of locate/updatedb. It uses merging to reuse the existing
442#              database and avoid rereading most of the filesystem. It's
443#              the default version of locate on Arch Linux (and others).
444# File path:   /var/lib/mlocate/mlocate.db by default (but configurable)
445# Site:        https://fedorahosted.org/mlocate/
446# Format docs: http://linux.die.net/man/5/mlocate.db
447# Type: mlocate database file
448# URL:  https://fedorahosted.org/mlocate/
449# From: Wander Nauta <info@wandernauta.nl>
4500		string		\0mlocate	mlocate database
451>12		byte		x		\b, version %d
452>13		byte		1		\b, require visibility
453>16		string		x		\b, root %s
454
455# Dump files for iproute2 tool. Generated by the "ip r|a save" command. URL:
456# https://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
457# From: Pavel Emelyanov <xemul@parallels.com>
4580		lelong		0x45311224	iproute2 routes dump
4590		lelong		0x47361222	iproute2 addresses dump
460
461# Image and service files for CRIU tool.
462# URL: http://criu.org
463# From: Pavel Emelyanov <xemul@parallels.com>
4640		lelong		0x54564319	CRIU image file v1.1
4650		lelong		0x55105940	CRIU service file
4660		lelong		0x58313116	CRIU inventory
467
468# Kdump compressed dump files
469# http://sourceforge.net/p/makedumpfile/code/ci/master/tree/IMPLEMENTATION
470
4710		string		KDUMP          	Kdump compressed dump
472>8		long		x		v%d
473>12		string		>\0		\b, system %s
474>77		string		>\0		\b, node %s
475>142		string		>\0		\b, release %s
476>207		string		>\0		\b, version %s
477>272		string		>\0		\b, machine %s
478>337		string		>\0		\b, domain %s
479