summaryrefslogtreecommitdiffstats
path: root/patches/systemd-230/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch
blob: 4372ab7425d74736190766642c34eb54bc271e0b (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
33
34
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Fri, 27 May 2016 10:49:55 +0200
Subject: [PATCH] missing: add SMACK_MAGIC, EFIVARFS_MAGIC, BINFMTFS_MAGIC

These were all introduced before kernel v3.9

Not for upstream, but needed for host-systemd.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 src/basic/missing.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/basic/missing.h b/src/basic/missing.h
index 0d28c1a4c22a..795a21bdf22d 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -898,6 +898,16 @@ static inline int syncfs(int fd)
 }
 #endif
 
+#ifndef SMACK_MAGIC
+#define SMACK_MAGIC 0x43415d53
+#endif
+#ifndef EFIVARFS_MAGIC
+#define EFIVARFS_MAGIC 0xde5e81e4
+#endif
+#ifndef BINFMTFS_MAGIC
+#define BINFMTFS_MAGIC 0x42494e4d
+#endif
+
 #ifndef IPV6_UNICAST_IF
 #define IPV6_UNICAST_IF 76
 #endif