diff options
author | Brian Behlendorf <[email protected]> | 2011-03-22 11:18:15 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-03-22 12:18:44 -0700 |
commit | 734fcac78d8c430aeb3731590b77dfcfa6de224f (patch) | |
tree | 76cde119b52cb4c9eee1bcb9dfac669199320d13 /include | |
parent | 9b0c3b2aa87610690cf6e1a792ff1484274a392d (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/cred.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/cred.h b/include/sys/cred.h index 6f4cde73c..778d05255 100644 --- a/include/sys/cred.h +++ b/include/sys/cred.h @@ -50,9 +50,11 @@ extern void crfree(cred_t *cr); extern uid_t crgetuid(const cred_t *cr); extern uid_t crgetruid(const cred_t *cr); extern uid_t crgetsuid(const cred_t *cr); +extern uid_t crgetfsuid(const cred_t *cr); extern gid_t crgetgid(const cred_t *cr); extern gid_t crgetrgid(const cred_t *cr); extern gid_t crgetsgid(const cred_t *cr); +extern gid_t crgetfsgid(const cred_t *cr); extern int crgetngroups(const cred_t *cr); extern gid_t * crgetgroups(const cred_t *cr); extern int groupmember(gid_t gid, const cred_t *cr); |