]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- shy apparmor back, needs testing so bconded
authorzbyniu <zbyniu@pld-linux.org>
Thu, 29 May 2008 14:20:20 +0000 (14:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel.spec -> 1.441.2.1914

kernel.spec

index 8356dc6362d53ce7f5a61218ed6e059eb16dc8ff..1992d5afd4bfe4294a311f611b09d10fb6e3d9ca 100644 (file)
@@ -6,7 +6,7 @@
 #
 # TODO:
 # - benchmark NO_HZ & HZ=1000 vs HZ=300 on i686
-# - apparmor (no future?)
+# - apparmor (needs testing)
 #
 # FUTURE:
 # - update xen patch
@@ -40,8 +40,8 @@
 
 %bcond_without vserver         # support for VServer (enabled by default)
 %bcond_without tuxonice        # support for tuxonice (ex-suspend2) (enabled by default)
-
 %bcond_with    vs22            # use vserver 2.2 instead of 2.3 (see comment near patch 102)
+%bcond_with    apparmor        # build kernel with apparmor (very exerimental mix)
 
 %bcond_with    rescuecd        # build kernel for our rescue
 
@@ -334,8 +334,10 @@ Patch2001: linux-2.6.21.1-pwc-uncompress.patch
 # (only warnings, so just remove parts of this patch if conflics)
 Patch2500:     linux-2.6-warnings.patch
 
-Patch5000:     apparmor-2.6.20.3-v405-fullseries.diff
-Patch5001:     linux-2.6-apparmor-caps.patch
+# based on https://forgesvn1.novell.com/svn/apparmor/trunk/kernel-patches/2.6.25 rev 1266
+# repatched and adapted for vserver/grsec changes in vfs API, very experimental
+Patch5000:     kernel-apparmor.patch
+#Patch5001:    linux-2.6-apparmor-caps.patch
 
 # for rescuecd
 # based on http://ftp.leg.uct.ac.za/pub/linux/rip/inittmpfs-2.6.14.diff.gz
@@ -876,11 +878,6 @@ install -m 755 %{SOURCE6} .
 
 %patch2500 -p1
 
-# FIXME !!! 2.6.24 (no modular security? crap)
-# Apparmor
-# %patch5000 -p1
-# %patch5001 -p1
-
 %if %{with rescuecd}
 %patch7000 -p1
 %patch7001 -p1
@@ -925,6 +922,12 @@ install -m 755 %{SOURCE6} .
 #
 # end of grsecurity & pax stuff
 
+# apparmor
+%if %{with apparmor}
+%patch5000 -p1
+# %patch5001 -p1
+%endif
+
 %ifarch ppc ppc64
 #patch200 -p1
 %endif
@@ -1172,6 +1175,17 @@ BuildConfig() {
        RescueConfig %{defconfig}
 %endif
 
+# apparmor, will be moved to external file if works
+%if %{with apparmor}
+echo CONFIG_SECURITY_APPARMOR=y >> %{defconfig}
+echo CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 >> %{defconfig}
+echo "# CONFIG_SECURITY_APPARMOR_DISABLE is not set" >> %{defconfig}
+# patch for unionfs not ready yet
+sed -i "s:CONFIG_UNION_FS=m:# CONFIG_UNION_FS is not set:" %{defconfig}
+# some conflict with smack, todo
+sed -i "s:CONFIG_SECURITY_SMACK=y:# CONFIG_SECURITY_SMACK is not set:" %{defconfig}
+%endif
+
 %{?debug:sed -i "s:# CONFIG_DEBUG_SLAB is not set:CONFIG_DEBUG_SLAB=y:" %{defconfig}}
 %{?debug:sed -i "s:# CONFIG_DEBUG_PREEMPT is not set:CONFIG_DEBUG_PREEMPT=y:" %{defconfig}}
 %{?debug:sed -i "s:# CONFIG_RT_DEADLOCK_DETECT is not set:CONFIG_RT_DEADLOCK_DETECT=y:" %{defconfig}}
This page took 0.059762 seconds and 4 git commands to generate.