diff options
author | netblue30 <netblue30@protonmail.com> | 2021-02-11 07:46:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 07:46:09 -0500 |
commit | 407c7b3bbdbdbceb93698d722f14a25be83b3b46 (patch) | |
tree | 6c567df28e5617d42f65cac7e0e92470aba0a023 /src | |
parent | fix spacing in man firejail (diff) | |
parent | add support for faccessat2 syscall (diff) | |
download | firejail-407c7b3bbdbdbceb93698d722f14a25be83b3b46.tar.gz firejail-407c7b3bbdbdbceb93698d722f14a25be83b3b46.tar.zst firejail-407c7b3bbdbdbceb93698d722f14a25be83b3b46.zip |
Merge pull request #3969 from glitsj16/fsaccessat2
add support for faccessat2 syscall
Diffstat (limited to 'src')
-rw-r--r-- | src/include/syscall_armeabi.h | 1 | ||||
-rw-r--r-- | src/include/syscall_i386.h | 1 | ||||
-rw-r--r-- | src/include/syscall_x86_64.h | 1 | ||||
-rw-r--r-- | src/lib/syscall.c | 3 |
4 files changed, 6 insertions, 0 deletions
diff --git a/src/include/syscall_armeabi.h b/src/include/syscall_armeabi.h index cbdc67f37..3b574f875 100644 --- a/src/include/syscall_armeabi.h +++ b/src/include/syscall_armeabi.h | |||
@@ -42,6 +42,7 @@ | |||
42 | { "exit", 1 }, | 42 | { "exit", 1 }, |
43 | { "exit_group", 248 }, | 43 | { "exit_group", 248 }, |
44 | { "faccessat", 334 }, | 44 | { "faccessat", 334 }, |
45 | { "faccessat2", 439 }, | ||
45 | { "fallocate", 352 }, | 46 | { "fallocate", 352 }, |
46 | { "fanotify_init", 367 }, | 47 | { "fanotify_init", 367 }, |
47 | { "fanotify_mark", 368 }, | 48 | { "fanotify_mark", 368 }, |
diff --git a/src/include/syscall_i386.h b/src/include/syscall_i386.h index 4795e5b2a..752e11f24 100644 --- a/src/include/syscall_i386.h +++ b/src/include/syscall_i386.h | |||
@@ -54,6 +54,7 @@ | |||
54 | { "exit", 1 }, | 54 | { "exit", 1 }, |
55 | { "exit_group", 252 }, | 55 | { "exit_group", 252 }, |
56 | { "faccessat", 307 }, | 56 | { "faccessat", 307 }, |
57 | { "faccessat2", 439 }, | ||
57 | { "fadvise64", 250 }, | 58 | { "fadvise64", 250 }, |
58 | { "fadvise64_64", 272 }, | 59 | { "fadvise64_64", 272 }, |
59 | { "fallocate", 324 }, | 60 | { "fallocate", 324 }, |
diff --git a/src/include/syscall_x86_64.h b/src/include/syscall_x86_64.h index 539e874be..97f2762b1 100644 --- a/src/include/syscall_x86_64.h +++ b/src/include/syscall_x86_64.h | |||
@@ -47,6 +47,7 @@ | |||
47 | { "exit", 60 }, | 47 | { "exit", 60 }, |
48 | { "exit_group", 231 }, | 48 | { "exit_group", 231 }, |
49 | { "faccessat", 269 }, | 49 | { "faccessat", 269 }, |
50 | { "faccessat2", 439 }, | ||
50 | { "fadvise64", 221 }, | 51 | { "fadvise64", 221 }, |
51 | { "fallocate", 285 }, | 52 | { "fallocate", 285 }, |
52 | { "fanotify_init", 300 }, | 53 | { "fanotify_init", 300 }, |
diff --git a/src/lib/syscall.c b/src/lib/syscall.c index 6823d0ae6..758f1ce0b 100644 --- a/src/lib/syscall.c +++ b/src/lib/syscall.c | |||
@@ -359,6 +359,9 @@ static const SyscallGroupList sysgroups[] = { | |||
359 | #ifdef SYS_faccessat | 359 | #ifdef SYS_faccessat |
360 | "faccessat," | 360 | "faccessat," |
361 | #endif | 361 | #endif |
362 | #ifdef SYS_faccessat2 | ||
363 | "faccessat2," | ||
364 | #endif | ||
362 | #ifdef SYS_fallocate | 365 | #ifdef SYS_fallocate |
363 | "fallocate," | 366 | "fallocate," |
364 | #endif | 367 | #endif |