HomeFreeBSD

Add crgetfsuid()/crgetfsgid() helpers

Description

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.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 22 2011, 6:18 PM
Parents
rG9b0c3b2aa876: Load zlib_inflate.ko
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG734fcac78d8c: Add crgetfsuid()/crgetfsgid() helpers (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Mar 22 2011, 7:18 PM