123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/bin/sh /usr/share/dpatch/dpatch-run
- ## 339-magic-add-selinux.dpatch by Russell Coker <russell@coker.com.au>
- ##
- ## DP: Adds new magics for SE Linux (Closes: #485886).
- @DPATCH@
- diff -Naurp file.orig/magic/Magdir/selinux file/magic/Magdir/selinux
- --- file.orig/magic/Magdir/selinux 1970-01-01 01:00:00.000000000 +0100
- +++ file/magic/Magdir/selinux 2008-06-13 09:07:24.000000000 +0200
- @@ -0,0 +1,24 @@
- +# Type: SE Linux policy modules *.pp reference policy
- +# for Fedora 5 to 9, RHEL5, and Debian Etch and Lenny.
- +# URL: http://doc.coker.com.au/computers/selinux-magic
- +# From: Russell Coker <russell@coker.com.au>
- +
- +0 lelong 0xf97cff8f SE Linux modular policy
- +>4 lelong x version %d,
- +>8 lelong x %d sections,
- +>>(12.l) lelong 0xf97cff8d
- +>>>(12.l+27) lelong x mod version %d,
- +>>>(12.l+31) lelong 0 Not MLS,
- +>>>(12.l+31) lelong 1 MLS,
- +>>>(12.l+23) lelong 2
- +>>>>(12.l+47) string >\0 module name %s
- +>>>(12.l+23) lelong 1 base
- +
- +1 string policy_module( SE Linux policy module source
- +2 string policy_module( SE Linux policy module source
- +
- +0 string ##\ <summary> SE Linux policy interface source
- +
- +#0 search gen_context( SE Linux policy file contexts
- +
- +#0 search gen_sens( SE Linux policy MLS constraints source
- diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
- --- file.orig/magic/Makefile.am 2008-06-13 09:07:45.000000000 +0200
- +++ file/magic/Makefile.am 2008-06-13 09:08:16.000000000 +0200
- @@ -164,6 +164,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
- $(MAGIC_FRAGMENT_DIR)/sccs \
- $(MAGIC_FRAGMENT_DIR)/scientific \
- $(MAGIC_FRAGMENT_DIR)/securitycerts \
- +$(MAGIC_FRAGMENT_DIR)/selinux \
- $(MAGIC_FRAGMENT_DIR)/sendmail \
- $(MAGIC_FRAGMENT_DIR)/sequent \
- $(MAGIC_FRAGMENT_DIR)/sgi \
- diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
- --- file.orig/magic/Makefile.in 2008-06-13 09:07:45.000000000 +0200
- +++ file/magic/Makefile.in 2008-06-13 09:08:23.000000000 +0200
- @@ -324,6 +324,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
- $(MAGIC_FRAGMENT_DIR)/sccs \
- $(MAGIC_FRAGMENT_DIR)/scientific \
- $(MAGIC_FRAGMENT_DIR)/securitycerts \
- +$(MAGIC_FRAGMENT_DIR)/selinux \
- $(MAGIC_FRAGMENT_DIR)/sendmail \
- $(MAGIC_FRAGMENT_DIR)/sequent \
- $(MAGIC_FRAGMENT_DIR)/sgi \
|