Blame SOURCES/0001-gcredentialsprivate-Document-the-various-private-mac.patch

475f90
From ef1035d9d86464ea0b5dde60a7a0e190895fdf5b Mon Sep 17 00:00:00 2001
475f90
From: Simon McVittie <smcv@collabora.com>
475f90
Date: Mon, 14 Oct 2019 08:22:24 +0100
475f90
Subject: [PATCH] gcredentialsprivate: Document the various private macros
475f90
475f90
Signed-off-by: Simon McVittie <smcv@collabora.com>
475f90
---
475f90
 gio/gcredentialsprivate.h | 59 +++++++++++++++++++++++++++++++++++++++
475f90
 1 file changed, 59 insertions(+)
475f90
475f90
diff --git a/gio/gcredentialsprivate.h b/gio/gcredentialsprivate.h
475f90
index 4d1c420a8..06f0aed19 100644
475f90
--- a/gio/gcredentialsprivate.h
475f90
+++ b/gio/gcredentialsprivate.h
475f90
@@ -22,6 +22,65 @@
475f90
 #include "gio/gcredentials.h"
475f90
 #include "gio/gnetworking.h"
475f90
 
475f90
+/*
475f90
+ * G_CREDENTIALS_SUPPORTED:
475f90
+ *
475f90
+ * Defined to 1 if GCredentials works.
475f90
+ */
475f90
+#undef G_CREDENTIALS_SUPPORTED
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_USE_LINUX_UCRED, etc.:
475f90
+ *
475f90
+ * Defined to 1 if GCredentials uses Linux `struct ucred`, etc.
475f90
+ */
475f90
+#undef G_CREDENTIALS_USE_LINUX_UCRED
475f90
+#undef G_CREDENTIALS_USE_FREEBSD_CMSGCRED
475f90
+#undef G_CREDENTIALS_USE_NETBSD_UNPCBID
475f90
+#undef G_CREDENTIALS_USE_OPENBSD_SOCKPEERCRED
475f90
+#undef G_CREDENTIALS_USE_SOLARIS_UCRED
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_NATIVE_TYPE:
475f90
+ *
475f90
+ * Defined to one of G_CREDENTIALS_TYPE_LINUX_UCRED, etc.
475f90
+ */
475f90
+#undef G_CREDENTIALS_NATIVE_TYPE
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_NATIVE_SIZE:
475f90
+ *
475f90
+ * Defined to the size of the %G_CREDENTIALS_NATIVE_TYPE
475f90
+ */
475f90
+#undef G_CREDENTIALS_NATIVE_SIZE
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED:
475f90
+ *
475f90
+ * Defined to 1 if we have a message-passing API in which credentials
475f90
+ * are attached to a particular message, such as `SCM_CREDENTIALS` on Linux
475f90
+ * or `SCM_CREDS` on FreeBSD.
475f90
+ */
475f90
+#undef G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED:
475f90
+ *
475f90
+ * Defined to 1 if we have a `getsockopt()`-style API in which one end of
475f90
+ * a socket connection can directly query the credentials of the process
475f90
+ * that initiated the other end, such as `getsockopt SO_PEERCRED` on Linux
475f90
+ * or `getpeereid()` on multiple operating systems.
475f90
+ */
475f90
+#undef G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED
475f90
+
475f90
+/*
475f90
+ * G_CREDENTIALS_SPOOFING_SUPPORTED:
475f90
+ *
475f90
+ * Defined to 1 if privileged processes can spoof their credentials when
475f90
+ * using the message-passing API.
475f90
+ */
475f90
+#undef G_CREDENTIALS_SPOOFING_SUPPORTED
475f90
+
475f90
 #ifdef __linux__
475f90
 #define G_CREDENTIALS_SUPPORTED 1
475f90
 #define G_CREDENTIALS_USE_LINUX_UCRED 1
475f90
-- 
475f90
2.23.0
475f90