virtualbox: Support UIDGID_STRICT_TYPE_CHECKS.

This adds a patch to support CONFIG_UIDGID_STRICT_TYPE_CHECKS being activated in
the kernel config (selected by CONFIG_USER_NS for example).

When this kernel option is enabled, current->cred->uid is a structure rather
than a simple integer type (uid_t and gid_t), so we need to check for that and
also pass the current user namespace where needed.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig
2013-03-01 09:42:38 +01:00
parent f26b5fb730
commit 1029ca5767
2 changed files with 72 additions and 1 deletions
@@ -54,7 +54,10 @@ in stdenv.mkDerivation {
++ optional javaBindings jdk
++ optional pythonBindings python;
patches = singleton ./missing_files_4.2.8.patch;
patches = [
./missing_files_4.2.8.patch
./strict_types.patch
];
prePatch = ''
set -x