From: David Herrmann Date: Wed, 7 Jan 2015 17:18:41 +0000 (+0100) Subject: policy: use egid instead of gid X-Git-Tag: upstream/0.20150129.081441utc~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcdb56a7cf1cde94052944af0dff61fcadaad182;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git policy: use egid instead of gid Same as for UIDs, use EGID instead of GID to perform policy checks. Signed-off-by: David Herrmann --- diff --git a/policy.c b/policy.c index 3ddbbc9..0b60f5f 100644 --- a/policy.c +++ b/policy.c @@ -175,7 +175,7 @@ int kdbus_policy_query_unlocked(struct kdbus_policy_db *db, highest = a->access; break; case KDBUS_POLICY_ACCESS_GROUP: - if (gid_eq(cred->gid, a->gid)) { + if (gid_eq(cred->egid, a->gid)) { highest = a->access; break; }