aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-07-09 17:38:46 +0200
committerLibravatar GitHub <noreply@github.com>2019-07-09 17:38:46 +0200
commit9b2bbfcc3184c26b8dda926b2709822015742093 (patch)
tree0a0ed0dcaaed522aa2da9525ee50aba4feb684b6
parentmove to fd based homedir mounts (diff)
downloadfirejail-9b2bbfcc3184c26b8dda926b2709822015742093.tar.gz
firejail-9b2bbfcc3184c26b8dda926b2709822015742093.tar.zst
firejail-9b2bbfcc3184c26b8dda926b2709822015742093.zip
main.c: define O_PATH (CentOS 6 fix)
-rw-r--r--src/firejail/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 03956ce4d..d00147c74 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -26,7 +26,6 @@
26#include <sys/mount.h> 26#include <sys/mount.h>
27#include <sys/wait.h> 27#include <sys/wait.h>
28#include <sys/stat.h> 28#include <sys/stat.h>
29#include <fcntl.h>
30#include <dirent.h> 29#include <dirent.h>
31#include <pwd.h> 30#include <pwd.h>
32#include <errno.h> 31#include <errno.h>
@@ -38,6 +37,11 @@
38#include <net/if.h> 37#include <net/if.h>
39#include <sys/utsname.h> 38#include <sys/utsname.h>
40 39
40#include <fcntl.h>
41#ifndef O_PATH
42#define O_PATH 010000000
43#endif
44
41#ifdef __ia64__ 45#ifdef __ia64__
42/* clone(2) has a different interface on ia64, as it needs to know 46/* clone(2) has a different interface on ia64, as it needs to know
43 the size of the stack */ 47 the size of the stack */