219-magic-add-selinux.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Author: Russell Coker <russell@coker.com.au>
  2. Description: Adds new magics for SE Linux (Closes: #485886).
  3. diff -Naurp file.orig/magic/Magdir/selinux file/magic/Magdir/selinux
  4. --- file.orig/magic/Magdir/selinux 1970-01-01 01:00:00.000000000 +0100
  5. +++ file/magic/Magdir/selinux 2008-06-13 09:07:24.000000000 +0200
  6. @@ -0,0 +1,24 @@
  7. +# Type: SE Linux policy modules *.pp reference policy
  8. +# for Fedora 5 to 9, RHEL5, and Debian Etch and Lenny.
  9. +# URL: http://doc.coker.com.au/computers/selinux-magic
  10. +# From: Russell Coker <russell@coker.com.au>
  11. +
  12. +0 lelong 0xf97cff8f SE Linux modular policy
  13. +>4 lelong x version %d,
  14. +>8 lelong x %d sections,
  15. +>>(12.l) lelong 0xf97cff8d
  16. +>>>(12.l+27) lelong x mod version %d,
  17. +>>>(12.l+31) lelong 0 Not MLS,
  18. +>>>(12.l+31) lelong 1 MLS,
  19. +>>>(12.l+23) lelong 2
  20. +>>>>(12.l+47) string >\0 module name %s
  21. +>>>(12.l+23) lelong 1 base
  22. +
  23. +1 string policy_module( SE Linux policy module source
  24. +2 string policy_module( SE Linux policy module source
  25. +
  26. +0 string ##\ <summary> SE Linux policy interface source
  27. +
  28. +#0 search gen_context( SE Linux policy file contexts
  29. +
  30. +#0 search gen_sens( SE Linux policy MLS constraints source
  31. diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
  32. --- file.orig/magic/Makefile.am 2008-06-13 09:07:45.000000000 +0200
  33. +++ file/magic/Makefile.am 2008-06-13 09:08:16.000000000 +0200
  34. @@ -164,6 +164,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
  35. $(MAGIC_FRAGMENT_DIR)/sccs \
  36. $(MAGIC_FRAGMENT_DIR)/scientific \
  37. $(MAGIC_FRAGMENT_DIR)/securitycerts \
  38. +$(MAGIC_FRAGMENT_DIR)/selinux \
  39. $(MAGIC_FRAGMENT_DIR)/sendmail \
  40. $(MAGIC_FRAGMENT_DIR)/sequent \
  41. $(MAGIC_FRAGMENT_DIR)/sgi \
  42. diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
  43. --- file.orig/magic/Makefile.in 2008-06-13 09:07:45.000000000 +0200
  44. +++ file/magic/Makefile.in 2008-06-13 09:08:23.000000000 +0200
  45. @@ -324,6 +324,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
  46. $(MAGIC_FRAGMENT_DIR)/sccs \
  47. $(MAGIC_FRAGMENT_DIR)/scientific \
  48. $(MAGIC_FRAGMENT_DIR)/securitycerts \
  49. +$(MAGIC_FRAGMENT_DIR)/selinux \
  50. $(MAGIC_FRAGMENT_DIR)/sendmail \
  51. $(MAGIC_FRAGMENT_DIR)/sequent \
  52. $(MAGIC_FRAGMENT_DIR)/sgi \