diff options
author | Chunwei Chen <[email protected]> | 2016-10-18 17:30:41 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-20 09:33:28 -0700 |
commit | ae7eda1dde8aebc298a013254dcd90f7fa42171a (patch) | |
tree | 56167dff16e601f6255616467f310ca23fc74b02 /include | |
parent | 87063d7dc392cb710c70dba49021d6e4ec8961a9 (diff) |
Linux 4.9 compat: group_info changes
In Linux 4.9, torvalds/linux@81243ea, group_info changed from 2d array via
->blocks to 1d array via ->gid. We change the spl cred functions accordingly.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #581
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/cred.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/cred.h b/include/sys/cred.h index 58f7aafda..2ad7115e0 100644 --- a/include/sys/cred.h +++ b/include/sys/cred.h @@ -34,6 +34,11 @@ typedef struct cred cred_t; #define kcred ((cred_t *)(init_task.cred)) #define CRED() ((cred_t *)current_cred()) +/* Linux 4.9 API change, GROUP_AT was removed */ +#ifndef GROUP_AT +#define GROUP_AT(gi, i) ((gi)->gid[i]) +#endif + #ifdef HAVE_KUIDGID_T #define KUID_TO_SUID(x) (__kuid_val(x)) |