Blame SOURCES/0019-UTIL-Add-utility-macro-cli_creds_get_gid.patch

ecf709
From 62acd53dc2880b23cfb221ce40537abfb6e011bb Mon Sep 17 00:00:00 2001
ecf709
From: Jakub Hrozek <jhrozek@redhat.com>
ecf709
Date: Tue, 20 Sep 2016 22:00:27 +0200
ecf709
Subject: [PATCH 19/36] UTIL: Add utility macro cli_creds_get_gid()
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
The KCM responder checks the owneship of the ccache based on both UID
ecf709
and GID of the peer. In order to reuse the already existing creds
ecf709
structure, let's just add a new macro that returns the GID from the
ecf709
creds structure.
ecf709
ecf709
Reviewed-by: Michal Židek <mzidek@redhat.com>
ecf709
Reviewed-by: Simo Sorce <simo@redhat.com>
ecf709
---
ecf709
 src/util/util_creds.h | 1 +
ecf709
 1 file changed, 1 insertion(+)
ecf709
ecf709
diff --git a/src/util/util_creds.h b/src/util/util_creds.h
ecf709
index 65468fa12b8c6921859574c40f5759c936a10e86..936b9965d1ccd2b437d93b38d789b6f8389f47a6 100644
ecf709
--- a/src/util/util_creds.h
ecf709
+++ b/src/util/util_creds.h
ecf709
@@ -71,6 +71,7 @@ struct cli_creds {
ecf709
 };
ecf709
 
ecf709
 #define cli_creds_get_uid(x) x->ucred.uid
ecf709
+#define cli_creds_get_gid(x) x->ucred.gid
ecf709
 
ecf709
 #else /* not HAVE_UCRED */
ecf709
 struct cli_creds {
ecf709
-- 
ecf709
2.9.3
ecf709