History log of /sssd-io/src/util/util_creds.h
Revision Date Author Comments Expand
4f511a4c5f0084e22ce4c7613f1b279533c68cc5 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add utility macro cli_creds_get_gid() 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>

6499d0b915209b670f8e337c4fe76a8be9fa6576 28-Jan-2016 Simo Sorce <simo@redhat.com>

Util: Improve code to get connection credentials Adds support to get SELINUX context and make code more abstract so that struct ucred (if availale) can be used w/o redefining uid,gid,pid to int32. Also gives a layer of indirection that may come handy if we want to improve the code further in the future. Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>