aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security/sssd/files/0002-Provide-missing-defines-which-otherwise-are-availabl.patch
blob: 1a2233209462a799f7359e833d77078cc8b608eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 37a0999e5a9f54e1c61a02a7fbab6fcd04738b3c Mon Sep 17 00:00:00 2001
From: Armin Kuster <akuster808@gmail.com>
Date: Thu, 8 Oct 2020 05:54:13 -0700
Subject: [PATCH] Provide missing defines which otherwise are available on
 glibc system headers

Signed-off-by: Armin Kuster <akuster808@gmail.com>

Upsteam-Status: Pending

---
 src/util/util.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/util/util.h b/src/util/util.h
index 8a754dbfd..6e55b4bdc 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -76,6 +76,10 @@
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
 #endif
 
+#ifndef ALLPERMS
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+#endif
+
 #define SSSD_MAIN_OPTS SSSD_DEBUG_OPTS
 
 #define SSSD_SERVER_OPTS(uid, gid) \
-- 
2.17.1