aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/seccomp.h
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-03-22 09:52:46 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-03-22 09:52:46 -0400
commit74695606e06941302d4cf39a56f270b3ff1e6d28 (patch)
tree487d6286570e0050d777dffac4cf1130b21518de /src/include/seccomp.h
parentmusl compile (diff)
downloadfirejail-74695606e06941302d4cf39a56f270b3ff1e6d28.tar.gz
firejail-74695606e06941302d4cf39a56f270b3ff1e6d28.tar.zst
firejail-74695606e06941302d4cf39a56f270b3ff1e6d28.zip
fix seccomp compile on Debian wheezy
Diffstat (limited to 'src/include/seccomp.h')
-rw-r--r--src/include/seccomp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/seccomp.h b/src/include/seccomp.h
index 01b8e4a07..8f0686a94 100644
--- a/src/include/seccomp.h
+++ b/src/include/seccomp.h
@@ -75,6 +75,22 @@
75// __u32 k; /* Generic multiuse field */ 75// __u32 k; /* Generic multiuse field */
76//}; 76//};
77 77
78// for old platforms (Debian "wheezy", etc.)
79#ifndef BPF_MOD
80#define BPF_MOD 0x90
81#endif
82#ifndef BPF_XOR
83#define BPF_XOR 0xa0
84#endif
85#ifndef SECCOMP_RET_ACTION
86#define SECCOMP_RET_ACTION 0x7fff0000U
87#endif
88#ifndef SECCOMP_RET_TRACE
89#define SECCOMP_RET_TRACE 0x7ff00000U
90#endif
91
92
93
78#include <sys/prctl.h> 94#include <sys/prctl.h>
79#ifndef PR_SET_NO_NEW_PRIVS 95#ifndef PR_SET_NO_NEW_PRIVS
80# define PR_SET_NO_NEW_PRIVS 38 96# define PR_SET_NO_NEW_PRIVS 38