summaryrefslogtreecommitdiffstats
path: root/patches/systemd-234/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch
blob: 6fe162a89faf429c0b485cbc2aa2de09d8b9f7e7 (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 a7f53e4622af..54ee7fa91414 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -1014,6 +1014,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