|
@@ -494,20 +494,20 @@ static int audit_filter_rules(struct task_struct *tsk,
|
|
|
result = audit_gid_comparator(cred->gid, f->op, f->gid);
|
|
|
if (f->op == Audit_equal) {
|
|
|
if (!result)
|
|
|
- result = in_group_p(f->gid);
|
|
|
+ result = groups_search(cred->group_info, f->gid);
|
|
|
} else if (f->op == Audit_not_equal) {
|
|
|
if (result)
|
|
|
- result = !in_group_p(f->gid);
|
|
|
+ result = !groups_search(cred->group_info, f->gid);
|
|
|
}
|
|
|
break;
|
|
|
case AUDIT_EGID:
|
|
|
result = audit_gid_comparator(cred->egid, f->op, f->gid);
|
|
|
if (f->op == Audit_equal) {
|
|
|
if (!result)
|
|
|
- result = in_egroup_p(f->gid);
|
|
|
+ result = groups_search(cred->group_info, f->gid);
|
|
|
} else if (f->op == Audit_not_equal) {
|
|
|
if (result)
|
|
|
- result = !in_egroup_p(f->gid);
|
|
|
+ result = !groups_search(cred->group_info, f->gid);
|
|
|
}
|
|
|
break;
|
|
|
case AUDIT_SGID:
|