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