/* Check whether we're fsgid/egid or in the supplemental group..  */
int in_group_p(gid_t grp)
/* Check whether we're fsgid/egid or in the supplemental group..  */
int in_group_p(gid_t grp)
{
	const struct cred *cred = current_cred();
	int retval = 1;
	if (grp != cred->fsgid)
		retval = groups_search(cred->group_info, grp);
	return retval;
}