diff options
author | tuxoko <[email protected]> | 2016-09-14 16:59:31 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-14 16:59:31 -0700 |
commit | 4329bd5b73e37073f01e848ccc9eb78a8fc1bcbc (patch) | |
tree | ab7f292f5fc36fd0ddee715c2f24d97a2d8f6b10 /include | |
parent | 4fd75d35af1f101ad2ab3e98220f4e52a24532f6 (diff) |
Cleanup in cred.h
Remove the code that doesn't make any sense.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #569
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/cred.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/sys/cred.h b/include/sys/cred.h index 4f62b00fd..58f7aafda 100644 --- a/include/sys/cred.h +++ b/include/sys/cred.h @@ -36,18 +36,6 @@ typedef struct cred cred_t; #ifdef HAVE_KUIDGID_T -/* - * Linux 3.8+ uses typedefs to redefine uid_t and gid_t. We have to rename the - * typedefs to recover the original types. We then can use them provided that - * we are careful about translating from k{g,u}id_t to the original versions - * and vice versa. - */ -#define uid_t xuid_t -#define gid_t xgid_t -#include <linux/uidgid.h> -#undef uid_t -#undef gid_t - #define KUID_TO_SUID(x) (__kuid_val(x)) #define KGID_TO_SGID(x) (__kgid_val(x)) #define SUID_TO_KUID(x) (KUIDT_INIT(x)) |