linux 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. #------------------------------------------------------------------------------
  2. # $File: linux,v 1.68 2019/09/11 21:20:56 christos Exp $
  3. # linux: file(1) magic for Linux files
  4. #
  5. # Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
  6. # The following basic Linux magic is useful for reference, but using
  7. # "long" magic is a better practice in order to avoid collisions.
  8. #
  9. # 2 leshort 100 Linux/i386
  10. # >0 leshort 0407 impure executable (OMAGIC)
  11. # >0 leshort 0410 pure executable (NMAGIC)
  12. # >0 leshort 0413 demand-paged executable (ZMAGIC)
  13. # >0 leshort 0314 demand-paged executable (QMAGIC)
  14. #
  15. 0 lelong 0x00640107 Linux/i386 impure executable (OMAGIC)
  16. >16 lelong 0 \b, stripped
  17. 0 lelong 0x00640108 Linux/i386 pure executable (NMAGIC)
  18. >16 lelong 0 \b, stripped
  19. 0 lelong 0x0064010b Linux/i386 demand-paged executable (ZMAGIC)
  20. >16 lelong 0 \b, stripped
  21. 0 lelong 0x006400cc Linux/i386 demand-paged executable (QMAGIC)
  22. >16 lelong 0 \b, stripped
  23. #
  24. 0 string \007\001\000 Linux/i386 object file
  25. >20 lelong >0x1020 \b, DLL library
  26. # Linux-8086 stuff:
  27. 0 string \01\03\020\04 Linux-8086 impure executable
  28. >28 long !0 not stripped
  29. 0 string \01\03\040\04 Linux-8086 executable
  30. >28 long !0 not stripped
  31. #
  32. 0 string \243\206\001\0 Linux-8086 object file
  33. #
  34. 0 string \01\03\020\20 Minix-386 impure executable
  35. >28 long !0 not stripped
  36. 0 string \01\03\040\20 Minix-386 executable
  37. >28 long !0 not stripped
  38. 0 string \01\03\04\20 Minix-386 NSYM/GNU executable
  39. >28 long !0 not stripped
  40. # core dump file, from Bill Reynolds <bill@goshawk.lanl.gov>
  41. 216 lelong 0421 Linux/i386 core file
  42. !:strength / 2
  43. >220 string >\0 of '%s'
  44. >200 lelong >0 (signal %d)
  45. #
  46. # LILO boot/chain loaders, from Daniel Quinlan <quinlan@yggdrasil.com>
  47. # this can be overridden by the DOS executable (COM) entry
  48. 2 string LILO Linux/i386 LILO boot/chain loader
  49. #
  50. # Linux make config build file, from Ole Aamot <oka@oka.no>
  51. # Updated by Ken Sharp
  52. 28 string make\ config Linux make config build file (old)
  53. 49 search/70 Kernel\ Configuration Linux make config build file
  54. #
  55. # PSF fonts, from H. Peter Anvin <hpa@yggdrasil.com>
  56. # Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
  57. # See: https://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
  58. 0 leshort 0x0436 Linux/i386 PC Screen Font v1 data,
  59. >2 byte&0x01 0 256 characters,
  60. >2 byte&0x01 !0 512 characters,
  61. >2 byte&0x02 0 no directory,
  62. >2 byte&0x02 !0 Unicode directory,
  63. >3 byte >0 8x%d
  64. 0 string \x72\xb5\x4a\x86\x00\x00 Linux/i386 PC Screen Font v2 data,
  65. >16 lelong x %d characters,
  66. >12 lelong&0x01 0 no directory,
  67. >12 lelong&0x01 !0 Unicode directory,
  68. >24 lelong x %d
  69. >28 lelong x \bx%d
  70. # Linux swap file, from Daniel Quinlan <quinlan@yggdrasil.com>
  71. 4086 string SWAP-SPACE Linux/i386 swap file
  72. # From: Jeff Bailey <jbailey@ubuntu.com>
  73. # Linux swap file with swsusp1 image, from Jeff Bailey <jbailey@ubuntu.com>
  74. 4076 string SWAPSPACE2S1SUSPEND Linux/i386 swap file (new style) with SWSUSP1 image
  75. # From: James Hunt <james.hunt@ubuntu.com>
  76. 4076 string SWAPSPACE2LINHIB0001 Linux/i386 swap file (new style) (compressed hibernate)
  77. # according to man page of mkswap (8) March 1999
  78. # volume label and UUID Russell Coker
  79. # https://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
  80. 4086 string SWAPSPACE2 Linux/i386 swap file (new style),
  81. >0x400 long x version %d (4K pages),
  82. >0x404 long x size %d pages,
  83. >1052 string \0 no label,
  84. >1052 string >\0 LABEL=%s,
  85. >0x40c belong x UUID=%08x
  86. >0x410 beshort x \b-%04x
  87. >0x412 beshort x \b-%04x
  88. >0x414 beshort x \b-%04x
  89. >0x416 belong x \b-%08x
  90. >0x41a beshort x \b%04x
  91. # From Daniel Novotny <dnovotny@redhat.com>
  92. # swap file for PowerPC
  93. 65526 string SWAPSPACE2 Linux/ppc swap file
  94. >0x400 long x version %d,
  95. >0x404 long x size %d pages,
  96. >1052 string \0 no label,
  97. >1052 string >\0 LABEL=%s,
  98. >0x40c belong x UUID=%08x
  99. >0x410 beshort x \b-%04x
  100. >0x412 beshort x \b-%04x
  101. >0x414 beshort x \b-%04x
  102. >0x416 belong x \b-%08x
  103. >0x41a beshort x \b%04x
  104. 16374 string SWAPSPACE2 Linux/ia64 swap file
  105. #
  106. # Linux kernel boot images, from Albert Cahalan <acahalan@cs.uml.edu>
  107. # and others such as Axel Kohlmeyer <akohlmey@rincewind.chemie.uni-ulm.de>
  108. # and Nicolas Lichtmaier <nick@debian.org>
  109. # All known start with: b8 c0 07 8e d8 b8 00 90 8e c0 b9 00 01 29 f6 29
  110. # Linux kernel boot images (i386 arch) (Wolfram Kleff)
  111. # URL: https://www.kernel.org/doc/Documentation/x86/boot.txt
  112. 514 string HdrS Linux kernel
  113. !:strength + 55
  114. # often no extension like in linux, vmlinuz, bzimage or memdisk but sometimes
  115. # Acronis Recovery kernel64.dat and Plop Boot Manager plpbtrom.bin
  116. # DamnSmallLinux 1.5 damnsmll.lnx
  117. !:ext /dat/bin/lnx
  118. >510 leshort 0xAA55 x86 boot executable
  119. >>518 leshort >0x1ff
  120. >>>529 byte 0 zImage,
  121. >>>529 byte 1 bzImage,
  122. >>>526 lelong >0
  123. >>>>(526.s+0x200) string >\0 version %s,
  124. >>498 leshort 1 RO-rootFS,
  125. >>498 leshort 0 RW-rootFS,
  126. >>508 leshort >0 root_dev 0x%X,
  127. >>502 leshort >0 swap_dev 0x%X,
  128. >>504 leshort >0 RAMdisksize %u KB,
  129. >>506 leshort 0xFFFF Normal VGA
  130. >>506 leshort 0xFFFE Extended VGA
  131. >>506 leshort 0xFFFD Prompt for Videomode
  132. >>506 leshort >0 Video mode %d
  133. # This also matches new kernels, which were caught above by "HdrS".
  134. 0 belong 0xb8c0078e Linux kernel
  135. >0x1e3 string Loading version 1.3.79 or older
  136. >0x1e9 string Loading from prehistoric times
  137. # System.map files - Nicolas Lichtmaier <nick@debian.org>
  138. 8 search/1 \ A\ _text Linux kernel symbol map text
  139. # LSM entries - Nicolas Lichtmaier <nick@debian.org>
  140. 0 search/1 Begin3 Linux Software Map entry text
  141. 0 search/1 Begin4 Linux Software Map entry text (new format)
  142. # From Matt Zimmerman, enhanced for v3 by Matthew Palmer
  143. 0 belong 0x4f4f4f4d User-mode Linux COW file
  144. >4 belong <3 \b, version %d
  145. >>8 string >\0 \b, backing file %s
  146. >4 belong >2 \b, version %d
  147. >>32 string >\0 \b, backing file %s
  148. ############################################################################
  149. # Linux kernel versions
  150. 0 string \xb8\xc0\x07\x8e\xd8\xb8\x00\x90 Linux
  151. >497 leshort 0 x86 boot sector
  152. >>514 belong 0x8e of a kernel from the dawn of time!
  153. >>514 belong 0x908ed8b4 version 0.99-1.1.42
  154. >>514 belong 0x908ed8b8 for memtest86
  155. >497 leshort !0 x86 kernel
  156. >>504 leshort >0 RAMdisksize=%u KB
  157. >>502 leshort >0 swap=0x%X
  158. >>508 leshort >0 root=0x%X
  159. >>>498 leshort 1 \b-ro
  160. >>>498 leshort 0 \b-rw
  161. >>506 leshort 0xFFFF vga=normal
  162. >>506 leshort 0xFFFE vga=extended
  163. >>506 leshort 0xFFFD vga=ask
  164. >>506 leshort >0 vga=%d
  165. >>514 belong 0x908ed881 version 1.1.43-1.1.45
  166. >>514 belong 0x15b281cd
  167. >>>0xa8e belong 0x55AA5a5a version 1.1.46-1.2.13,1.3.0
  168. >>>0xa99 belong 0x55AA5a5a version 1.3.1,2
  169. >>>0xaa3 belong 0x55AA5a5a version 1.3.3-1.3.30
  170. >>>0xaa6 belong 0x55AA5a5a version 1.3.31-1.3.41
  171. >>>0xb2b belong 0x55AA5a5a version 1.3.42-1.3.45
  172. >>>0xaf7 belong 0x55AA5a5a version 1.3.46-1.3.72
  173. >>514 string HdrS
  174. >>>518 leshort >0x1FF
  175. >>>>529 byte 0 \b, zImage
  176. >>>>529 byte 1 \b, bzImage
  177. >>>>(526.s+0x200) string >\0 \b, version %s
  178. # Linux boot sector thefts.
  179. 0 belong 0xb8c0078e Linux
  180. >0x1e6 belong 0x454c4b53 ELKS Kernel
  181. >0x1e6 belong !0x454c4b53 style boot sector
  182. ############################################################################
  183. # Linux S390 kernel image
  184. # Created by: Jan Kaluza <jkaluza@redhat.com>
  185. 8 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
  186. >0x00010000 search/b/4096 \x00\x0a\x00\x00\x8b\xad\xcc\xcc
  187. # 64bit
  188. >>&0 string \xc1\x00\xef\xe3\xf0\x68\x00\x00 Z10 64bit kernel
  189. >>&0 string \xc1\x00\xef\xc3\x00\x00\x00\x00 Z9-109 64bit kernel
  190. >>&0 string \xc0\x00\x20\x00\x00\x00\x00\x00 Z990 64bit kernel
  191. >>&0 string \x00\x00\x00\x00\x00\x00\x00\x00 Z900 64bit kernel
  192. # 32bit
  193. >>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z10 32bit kernel
  194. >>&0 string \x81\x00\xc8\x80\x00\x00\x00\x00 Z9-109 32bit kernel
  195. >>&0 string \x80\x00\x20\x00\x00\x00\x00\x00 Z990 32bit kernel
  196. >>&0 string \x80\x00\x00\x00\x00\x00\x00\x00 Z900 32bit kernel
  197. # Linux ARM compressed kernel image
  198. # From: Kevin Cernekee <cernekee@gmail.com>
  199. # Update: Joerg Jenderek
  200. 36 lelong 0x016f2818 Linux kernel ARM boot executable zImage (little-endian)
  201. # raspian "kernel7.img", Vu+ Ultimo4K "kernel_auto.bin"
  202. !:ext img/bin
  203. 36 belong 0x016f2818 Linux kernel ARM boot executable zImage (big-endian)
  204. ############################################################################
  205. # Linux 8086 executable
  206. 0 lelong&0xFF0000FF 0xC30000E9 Linux-Dev86 executable, headerless
  207. >5 string .
  208. >>4 string >\0 \b, libc version %s
  209. 0 lelong&0xFF00FFFF 0x4000301 Linux-8086 executable
  210. >2 byte&0x01 !0 \b, unmapped zero page
  211. >2 byte&0x20 0 \b, impure
  212. >2 byte&0x20 !0
  213. >>2 byte&0x10 !0 \b, A_EXEC
  214. >2 byte&0x02 !0 \b, A_PAL
  215. >2 byte&0x04 !0 \b, A_NSYM
  216. >2 byte&0x08 !0 \b, A_STAND
  217. >2 byte&0x40 !0 \b, A_PURE
  218. >2 byte&0x80 !0 \b, A_TOVLY
  219. >28 long !0 \b, not stripped
  220. >37 string .
  221. >>36 string >\0 \b, libc version %s
  222. # 0 lelong&0xFF00FFFF 0x10000301 ld86 I80386 executable
  223. # 0 lelong&0xFF00FFFF 0xB000301 ld86 M68K executable
  224. # 0 lelong&0xFF00FFFF 0xC000301 ld86 NS16K executable
  225. # 0 lelong&0xFF00FFFF 0x17000301 ld86 SPARC executable
  226. # SYSLINUX boot logo files (from 'ppmtolss16' sources)
  227. # https://www.syslinux.org/wiki/index.php/SYSLINUX#Display_graphic_from_filename:
  228. # file extension .lss .16
  229. 0 lelong =0x1413f33d SYSLINUX' LSS16 image data
  230. # syslinux-4.05/mime/image/x-lss16.xml
  231. !:mime image/x-lss16
  232. >4 leshort x \b, width %d
  233. >6 leshort x \b, height %d
  234. 0 string OOOM User-Mode-Linux's Copy-On-Write disk image
  235. >4 belong x version %d
  236. # SE Linux policy database
  237. # From: Mike Frysinger <vapier@gentoo.org>
  238. 0 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. # Linux Logical Volume Manager (LVM)
  244. # Emmanuel VARAGNAT <emmanuel.varagnat@guzu.net>
  245. #
  246. # System ID, UUID and volume group name are 128 bytes long
  247. # but they should never be full and initialized with zeros...
  248. #
  249. # LVM1
  250. #
  251. 0x0 string HM\001 LVM1 (Linux Logical Volume Manager), version 1
  252. >0x12c string >\0 , System ID: %s
  253. 0x0 string HM\002 LVM1 (Linux Logical Volume Manager), version 2
  254. >0x12c string >\0 , System ID: %s
  255. # LVM2
  256. #
  257. # It seems that the label header can be in one the four first sector
  258. # of the disk... (from _find_labeller in lib/label/label.c of LVM2)
  259. #
  260. # 0x200 seems to be the common case
  261. 0x218 string LVM2\ 001 LVM2 PV (Linux Logical Volume Manager)
  262. # read the offset to add to the start of the header, and the header
  263. # start in 0x200
  264. >&(&-12.l-0x21) byte x
  265. # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
  266. >>&0x0 string >\x2f \b, UUID: %.6s
  267. >>&0x6 string >\x2f \b-%.4s
  268. >>&0xa string >\x2f \b-%.4s
  269. >>&0xe string >\x2f \b-%.4s
  270. >>&0x12 string >\x2f \b-%.4s
  271. >>&0x16 string >\x2f \b-%.4s
  272. >>&0x1a string >\x2f \b-%.6s
  273. >>&0x20 lequad x \b, size: %lld
  274. 0x018 string LVM2\ 001 LVM2 PV (Linux Logical Volume Manager)
  275. >&(&-12.l-0x21) byte x
  276. # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
  277. >>&0x0 string >\x2f \b, UUID: %.6s
  278. >>&0x6 string >\x2f \b-%.4s
  279. >>&0xa string >\x2f \b-%.4s
  280. >>&0xe string >\x2f \b-%.4s
  281. >>&0x12 string >\x2f \b-%.4s
  282. >>&0x16 string >\x2f \b-%.4s
  283. >>&0x1a string >\x2f \b-%.6s
  284. >>&0x20 lequad x \b, size: %lld
  285. 0x418 string LVM2\ 001 LVM2 PV (Linux Logical Volume Manager)
  286. >&(&-12.l-0x21) byte x
  287. # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
  288. >>&0x0 string >\x2f \b, UUID: %.6s
  289. >>&0x6 string >\x2f \b-%.4s
  290. >>&0xa string >\x2f \b-%.4s
  291. >>&0xe string >\x2f \b-%.4s
  292. >>&0x12 string >\x2f \b-%.4s
  293. >>&0x16 string >\x2f \b-%.4s
  294. >>&0x1a string >\x2f \b-%.6s
  295. >>&0x20 lequad x \b, size: %lld
  296. 0x618 string LVM2\ 001 LVM2 PV (Linux Logical Volume Manager)
  297. >&(&-12.l-0x21) byte x
  298. # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
  299. >>&0x0 string >\x2f \b, UUID: %.6s
  300. >>&0x6 string >\x2f \b-%.4s
  301. >>&0xa string >\x2f \b-%.4s
  302. >>&0xe string >\x2f \b-%.4s
  303. >>&0x12 string >\x2f \b-%.4s
  304. >>&0x16 string >\x2f \b-%.4s
  305. >>&0x1a string >\x2f \b-%.6s
  306. >>&0x20 lequad x \b, size: %lld
  307. # LVM snapshot
  308. # from Jason Farrel
  309. 0 string SnAp LVM Snapshot (CopyOnWrite store)
  310. >4 lelong !0 - valid,
  311. >4 lelong 0 - invalid,
  312. >8 lelong x version %d,
  313. >12 lelong x chunk_size %d
  314. # SE Linux policy database
  315. 0 lelong 0xf97cff8c SE Linux policy
  316. >16 lelong x v%d
  317. >20 lelong 1 MLS
  318. >24 lelong x %d symbols
  319. >28 lelong x %d ocons
  320. # LUKS: Linux Unified Key Setup, On-Disk Format, http://luks.endorphin.org/spec
  321. # Anthon van der Neut (anthon@mnt.org)
  322. 0 string LUKS\xba\xbe LUKS encrypted file,
  323. >6 beshort x ver %d
  324. >8 string x [%s,
  325. >40 string x %s,
  326. >72 string x %s]
  327. >168 string x UUID: %s
  328. # Summary: Xen saved domain file
  329. # Created by: Radek Vokal <rvokal@redhat.com>
  330. 0 string LinuxGuestRecord Xen saved domain
  331. >20 search/256 (name
  332. >>&1 string x (name %s)
  333. # Type: Xen, the virtual machine monitor
  334. # From: Radek Vokal <rvokal@redhat.com>
  335. 0 string LinuxGuestRecord Xen saved domain
  336. #>2 regex \(name\ [^)]*\) %s
  337. >20 search/256 (name (name
  338. >>&1 string x %s...)
  339. # Systemd journald files
  340. # See https://www.freedesktop.org/wiki/Software/systemd/journal-files/.
  341. # From: Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>
  342. # check magic
  343. 0 string LPKSHHRH
  344. # check that state is one of known values
  345. >16 ubyte&252 0
  346. # check that each half of three unique id128s is non-zero
  347. >>24 ubequad >0
  348. >>>32 ubequad >0
  349. >>>>40 ubequad >0
  350. >>>>>48 ubequad >0
  351. >>>>>>56 ubequad >0
  352. >>>>>>>64 ubequad >0 Journal file
  353. !:mime application/octet-stream
  354. # provide more info
  355. >>>>>>>>184 leqdate 0 empty
  356. >>>>>>>>16 ubyte 0 \b, offline
  357. >>>>>>>>16 ubyte 1 \b, online
  358. >>>>>>>>16 ubyte 2 \b, archived
  359. >>>>>>>>8 ulelong&1 1 \b, sealed
  360. >>>>>>>>12 ulelong&1 1 \b, compressed
  361. # BCache backing and cache devices
  362. # From: Gabriel de Perthuis <g2p.code@gmail.com>
  363. 0x1008 lequad 8
  364. >0x1018 string \xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81 BCache
  365. >>0x1010 ulequad 0 cache device
  366. >>0x1010 ulequad 1 backing device
  367. >>0x1010 ulequad 3 cache device
  368. >>0x1010 ulequad 4 backing device
  369. >>0x1048 string >0 \b, label "%.32s"
  370. >>0x1028 ubelong x \b, uuid %08x
  371. >>0x102c ubeshort x \b-%04x
  372. >>0x102e ubeshort x \b-%04x
  373. >>0x1030 ubeshort x \b-%04x
  374. >>0x1032 ubelong x \b-%08x
  375. >>0x1036 ubeshort x \b%04x
  376. >>0x1038 ubelong x \b, set uuid %08x
  377. >>0x103c ubeshort x \b-%04x
  378. >>0x103e ubeshort x \b-%04x
  379. >>0x1040 ubeshort x \b-%04x
  380. >>0x1042 ubelong x \b-%08x
  381. >>0x1046 ubeshort x \b%04x
  382. # Linux device tree:
  383. # File format description can be found in the Linux kernel sources at
  384. # Documentation/devicetree/booting-without-of.txt
  385. # From Christoph Biedl
  386. 0 belong 0xd00dfeed
  387. # structure and strings must be within blob
  388. >&(8.L) byte x
  389. >>&(12.L) byte x
  390. >>>20 belong >1 Device Tree Blob version %d
  391. >>>>4 belong x \b, size=%d
  392. >>>>20 belong >1
  393. >>>>>28 belong x \b, boot CPU=%d
  394. >>>>20 belong >2
  395. >>>>>32 belong x \b, string block size=%d
  396. >>>>20 belong >16
  397. >>>>>36 belong x \b, DT structure block size=%d
  398. # glibc locale archive as defined in glibc locale/locarchive.h
  399. 0 lelong 0xde020109 locale archive
  400. >24 lelong x %d strings
  401. # Linux Software RAID (mdadm)
  402. # Russell Coker <russell@coker.com.au>
  403. 0 name linuxraid
  404. >16 belong x UUID=%8x:
  405. >20 belong x \b%8x:
  406. >24 belong x \b%8x:
  407. >28 belong x \b%8x
  408. >32 string x name=%s
  409. >72 lelong x level=%d
  410. >92 lelong x disks=%d
  411. 4096 lelong 0xa92b4efc Linux Software RAID
  412. >4100 lelong x version 1.2 (%d)
  413. >4096 use linuxraid
  414. 0 lelong 0xa92b4efc Linux Software RAID
  415. >4 lelong x version 1.1 (%d)
  416. >0 use linuxraid
  417. # Summary: Database file for mlocate
  418. # Description: A database file as used by mlocate, a fast implementation
  419. # of locate/updatedb. It uses merging to reuse the existing
  420. # database and avoid rereading most of the filesystem. It's
  421. # the default version of locate on Arch Linux (and others).
  422. # File path: /var/lib/mlocate/mlocate.db by default (but configurable)
  423. # Site: https://fedorahosted.org/mlocate/
  424. # Format docs: https://linux.die.net/man/5/mlocate.db
  425. # Type: mlocate database file
  426. # URL: https://fedorahosted.org/mlocate/
  427. # From: Wander Nauta <info@wandernauta.nl>
  428. 0 string \0mlocate mlocate database
  429. >12 byte x \b, version %d
  430. >13 byte 1 \b, require visibility
  431. >16 string x \b, root %s
  432. # Dump files for iproute2 tool. Generated by the "ip r|a save" command. URL:
  433. # https://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
  434. # From: Pavel Emelyanov <xemul@parallels.com>
  435. 0 lelong 0x45311224 iproute2 routes dump
  436. 0 lelong 0x47361222 iproute2 addresses dump
  437. # Image and service files for CRIU tool.
  438. # URL: https://criu.org
  439. # From: Pavel Emelyanov <xemul@parallels.com>
  440. 0 lelong 0x54564319 CRIU image file v1.1
  441. 0 lelong 0x55105940 CRIU service file
  442. 0 lelong 0x58313116 CRIU inventory
  443. # Kdump compressed dump files
  444. # https://sourceforge.net/p/makedumpfile/code/ci/master/tree/IMPLEMENTATION
  445. 0 string KDUMP Kdump compressed dump
  446. >8 long x v%d
  447. >12 string >\0 \b, system %s
  448. >77 string >\0 \b, node %s
  449. >142 string >\0 \b, release %s
  450. >207 string >\0 \b, version %s
  451. >272 string >\0 \b, machine %s
  452. >337 string >\0 \b, domain %s
  453. # Device Tree files
  454. 0 search/1024 /dts-v1/ Device Tree File (v1)
  455. # beat c code
  456. !:strength +14