|
@@ -65,6 +65,12 @@ extern void groups_free(struct group_info *);
|
|
|
|
|
|
extern int in_group_p(kgid_t);
|
|
extern int in_group_p(kgid_t);
|
|
extern int in_egroup_p(kgid_t);
|
|
extern int in_egroup_p(kgid_t);
|
|
|
|
+extern int groups_search(const struct group_info *, kgid_t);
|
|
|
|
+
|
|
|
|
+extern int set_current_groups(struct group_info *);
|
|
|
|
+extern void set_groups(struct cred *, struct group_info *);
|
|
|
|
+extern bool may_setgroups(void);
|
|
|
|
+extern void groups_sort(struct group_info *);
|
|
#else
|
|
#else
|
|
static inline void groups_free(struct group_info *group_info)
|
|
static inline void groups_free(struct group_info *group_info)
|
|
{
|
|
{
|
|
@@ -78,12 +84,11 @@ static inline int in_egroup_p(kgid_t grp)
|
|
{
|
|
{
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
+static inline int groups_search(const struct group_info *group_info, kgid_t grp)
|
|
|
|
+{
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
#endif
|
|
#endif
|
|
-extern int set_current_groups(struct group_info *);
|
|
|
|
-extern void set_groups(struct cred *, struct group_info *);
|
|
|
|
-extern int groups_search(const struct group_info *, kgid_t);
|
|
|
|
-extern bool may_setgroups(void);
|
|
|
|
-extern void groups_sort(struct group_info *);
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* The security context of a task
|
|
* The security context of a task
|