19 lines
700 B
Diff
19 lines
700 B
Diff
--- a/sandbox/linux/suid/sandbox.c 2019-11-19 09:28:05.000000000 +0800
|
|
+++ b/sandbox/linux/suid/sandbox.c 2020-04-24 11:50:12.719880728 +0800
|
|
@@ -42,6 +42,15 @@
|
|
#define CLONE_NEWNET 0x40000000
|
|
#endif
|
|
|
|
+#ifndef TEMP_FAILURE_RETRY
|
|
+#define TEMP_FAILURE_RETRY(expression) \
|
|
+ (__extension__ \
|
|
+ ({ long int __result; \
|
|
+ do __result = (long int) (expression); \
|
|
+ while (__result == -1L && errno == EINTR); \
|
|
+ __result; }))
|
|
+#endif
|
|
+
|
|
static bool DropRoot();
|
|
|
|
#define HANDLE_EINTR(x) TEMP_FAILURE_RETRY(x)
|