diff options
author | smitsohu <smitsohu@gmail.com> | 2019-05-16 22:43:10 +0200 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2019-05-16 22:43:10 +0200 |
commit | 203e34db60e9200a53708c425868a041e32eaf0d (patch) | |
tree | bdcbbc4f83cedf251aab40e7a2cfe04086d26990 /src/firejail/fs_whitelist.c | |
parent | Merge pull request #2691 from curiosity-seeker/master (diff) | |
download | firejail-203e34db60e9200a53708c425868a041e32eaf0d.tar.gz firejail-203e34db60e9200a53708c425868a041e32eaf0d.tar.zst firejail-203e34db60e9200a53708c425868a041e32eaf0d.zip |
glibc missing O_PATH definition on CentOS 6 - #2696
Diffstat (limited to 'src/firejail/fs_whitelist.c')
-rw-r--r-- | src/firejail/fs_whitelist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index d128065d3..bce44b9e5 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -24,9 +24,13 @@ | |||
24 | #include <fnmatch.h> | 24 | #include <fnmatch.h> |
25 | #include <glob.h> | 25 | #include <glob.h> |
26 | #include <dirent.h> | 26 | #include <dirent.h> |
27 | #include <fcntl.h> | ||
28 | #include <errno.h> | 27 | #include <errno.h> |
29 | 28 | ||
29 | #include <fcntl.h> | ||
30 | #ifndef O_PATH | ||
31 | # define O_PATH 010000000 | ||
32 | #endif | ||
33 | |||
30 | // mountinfo functionality test; | 34 | // mountinfo functionality test; |
31 | // 1. enable TEST_MOUNTINFO definition | 35 | // 1. enable TEST_MOUNTINFO definition |
32 | // 2. run firejail --whitelist=/any/directory | 36 | // 2. run firejail --whitelist=/any/directory |