]> git.proxmox.com Git - mirror_spl.git/commit - include/sys/cred.h
Add crgetfsuid()/crgetfsgid() helpers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Mar 2011 18:18:15 +0000 (11:18 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Mar 2011 19:18:44 +0000 (12:18 -0700)
commit734fcac78d8c430aeb3731590b77dfcfa6de224f
tree76cde119b52cb4c9eee1bcb9dfac669199320d13
parent9b0c3b2aa87610690cf6e1a792ff1484274a392d
Add crgetfsuid()/crgetfsgid() helpers

Solaris credentials don't have an fsuid/fsguid field but Linux
credentials do.  To handle this case the Solaris API is being
modestly extended to include the crgetfsuid()/crgetfsgid()
helper functions.

Addititionally, because the crget*() helpers are implemented
identically regardless of HAVE_CRED_STRUCT they have been
moved outside the #ifdef to common code.  This simplification
means we only have one version of the helper to keep to to date.
include/sys/cred.h
module/spl/spl-cred.c