diff options
Diffstat (limited to 'include/linux/cred.h')
| -rw-r--r-- | include/linux/cred.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/cred.h b/include/linux/cred.h index 631286535d0f..7eed6101c791 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h | |||
| @@ -65,6 +65,12 @@ extern void groups_free(struct group_info *); | |||
| 65 | 65 | ||
| 66 | extern int in_group_p(kgid_t); | 66 | extern int in_group_p(kgid_t); |
| 67 | extern int in_egroup_p(kgid_t); | 67 | extern int in_egroup_p(kgid_t); |
| 68 | extern int groups_search(const struct group_info *, kgid_t); | ||
| 69 | |||
| 70 | extern int set_current_groups(struct group_info *); | ||
| 71 | extern void set_groups(struct cred *, struct group_info *); | ||
| 72 | extern bool may_setgroups(void); | ||
| 73 | extern void groups_sort(struct group_info *); | ||
| 68 | #else | 74 | #else |
| 69 | static inline void groups_free(struct group_info *group_info) | 75 | static inline void groups_free(struct group_info *group_info) |
| 70 | { | 76 | { |
| @@ -78,12 +84,11 @@ static inline int in_egroup_p(kgid_t grp) | |||
| 78 | { | 84 | { |
| 79 | return 1; | 85 | return 1; |
| 80 | } | 86 | } |
| 87 | static inline int groups_search(const struct group_info *group_info, kgid_t grp) | ||
| 88 | { | ||
| 89 | return 1; | ||
| 90 | } | ||
| 81 | #endif | 91 | #endif |
| 82 | extern int set_current_groups(struct group_info *); | ||
| 83 | extern void set_groups(struct cred *, struct group_info *); | ||
| 84 | extern int groups_search(const struct group_info *, kgid_t); | ||
| 85 | extern bool may_setgroups(void); | ||
| 86 | extern void groups_sort(struct group_info *); | ||
| 87 | 92 | ||
| 88 | /* | 93 | /* |
| 89 | * The security context of a task | 94 | * The security context of a task |
