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

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