]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Add basic credential support and splat tests.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 00:18:59 +0000 (17:18 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 00:18:59 +0000 (17:18 -0700)
commitec7d53e99aee17ae1500701520649d3b54b31676
treef421355a405d77f19d0ce0505a0e1069f64984ed
parent3d0cb2d31dbeef37382249ceb9f16a46c2ccd819
Add basic credential support and splat tests.
The previous credential implementation simply provided the needed types and
a couple of dummy functions needed.  This update correctly ties the basic
Solaris credential API in to one of two Linux kernel APIs.

Prior to 2.6.29 the linux kernel embeded all credentials in the task
structure.  For these kernels, we pass around the entire task struct as if
it were the credential, then we use the helper functions to extract the
credential related bits.

As of 2.6.29 a new credential type was added which we can and do fairly
cleanly layer on top of.  Once again the helper functions nicely hide
the implementation details from all callers.

Three tests were added to the splat test framework to verify basic
correctness.  They should be extended as needed when need credential
functions are added.
13 files changed:
config/spl-build.m4
configure
include/splat-ctl.h
include/sys/cred.h
include/sys/debug.h
module/spl/Makefile.in
module/spl/spl-cred.c [new file with mode: 0644]
module/spl/spl-debug.c
module/splat/Makefile.in
module/splat/splat-cred.c [new file with mode: 0644]
module/splat/splat-ctl.c
module/splat/splat-internal.h
spl_config.h.in