File chromium-90-fseal.patch of Package chromium-ffmpeg-extra (Revision 4407c879c2f3d7778ebd138b74f5810a)

Currently displaying revision 4407c879c2f3d7778ebd138b74f5810a , Show latest

49
 
1
--- chromium-90.0.4430.85/mojo/core/channel_linux.cc.xx 2021-04-26 10:31:10.188705842 +0200
2
+++ chromium-90.0.4430.85/mojo/core/channel_linux.cc    2021-04-26 11:23:26.997161282 +0200
3
@@ -5,6 +5,21 @@
4
 #include "mojo/core/channel_linux.h"
5
 
6
 #include <fcntl.h>
7
+#ifndef F_SEAL_SEAL
8
+# define F_SEAL_SEAL    0x0001
9
+#endif
10
+#ifndef F_SEAL_SHRINK
11
+# define F_SEAL_SHRINK        0x0002
12
+#endif
13
+#ifndef F_SEAL_GROW
14
+# define F_SEAL_GROW  0x0004
15
+#endif
16
+#ifndef F_ADD_SEALS
17
+# define F_ADD_SEALS    1033
18
+#endif
19
+#ifndef F_GET_SEALS
20
+# define F_GET_SEALS    1034
21
+#endif
22
 #include <linux/futex.h>
23
 #include <linux/memfd.h>
24
 #include <sys/eventfd.h>
25
--- chromium-90.0.4430.85/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.xx   2021-04-26 16:39:18.387482941 +0200
26
+++ chromium-90.0.4430.85/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc  2021-04-26 16:40:10.866754337 +0200
27
@@ -6,6 +6,21 @@
28
 
29
 #include <errno.h>
30
 #include <fcntl.h>
31
+#ifndef F_SEAL_SEAL
32
+# define F_SEAL_SEAL    0x0001
33
+#endif
34
+#ifndef F_SEAL_SHRINK
35
+# define F_SEAL_SHRINK        0x0002
36
+#endif
37
+#ifndef F_SEAL_GROW
38
+# define F_SEAL_GROW  0x0004
39
+#endif
40
+#ifndef F_ADD_SEALS
41
+# define F_ADD_SEALS    1033
42
+#endif
43
+#ifndef F_GET_SEALS
44
+# define F_GET_SEALS    1034
45
+#endif
46
 #include <linux/net.h>
47
 #include <sched.h>
48
 #include <signal.h>
49