340-magic-add-selinux.dpatch 2.1 KB

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