]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 3.8 compat: Use kuid_t/kgid_t when required
authorRichard Yao <ryao@gentoo.org>
Sat, 13 Jul 2013 20:34:56 +0000 (16:34 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Aug 2013 17:09:29 +0000 (10:09 -0700)
commitf7fd6ddd96fae173d64bf2982ba4ceda28db56e2
tree126882274ddfdeae16a85c89570f98c4bc5efcd0
parente3c4d44886a8564e84aa697477b0e37211d634cd
Linux 3.8 compat: Use kuid_t/kgid_t when required

When CONFIG_UIDGID_STRICT_TYPE_CHECKS is enabled uid_t/git_t are
replaced by kuid_t/kgid_t, which are structures instead of integral
types. This causes any code that uses an integral type to fail to build.
The User Namespace functionality introduced in Linux 3.8 requires
CONFIG_UIDGID_STRICT_TYPE_CHECKS, so we could not build against any
kernel that supported it.

We resolve this by converting between the new kuid_t/kgid_t structures
and the original uid_t/gid_t types.

Original-patch-by: DHE
Rewrite-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #260
config/spl-build.m4
include/sys/cred.h
module/spl/spl-cred.c
module/spl/spl-vnode.c