AppArmor: add a sample patched kernel.

This commit is contained in:
Evgeny Egorochkin
2013-05-11 08:50:34 +03:00
parent a9459797e2
commit 8d7e1a79cc
2 changed files with 23 additions and 1 deletions
+14 -1
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchgit }:
{ stdenv, fetchurl, fetchgit, apparmor }:
let
@@ -36,10 +36,23 @@ let
'';
};
makeAppArmorPatch = {apparmor, version}:
stdenv.mkDerivation {
name = "apparmor-${version}.patch";
phases = ["installPhase"];
installPhase = ''
cat ${apparmor}/kernel-patches/${version}/* > $out
'';
};
in
rec {
apparmor_3_2 = {
features.apparmor = true;
patch = makeAppArmorPatch { version = "3.2"; inherit apparmor; };
};
sec_perm_2_6_24 =
{ name = "sec_perm-2.6.24";
patch = ./sec_perm-2.6.24.patch;