From 917afeaa705dfdebeebcd674db3bcba279241d5e Mon Sep 17 00:00:00 2001 From: Jiaheng Hu Date: Fri, 26 Jun 2020 21:30:56 +0000 Subject: sys/linux: add faccessat2 Added the faccessat2 description (linux 5.8) (https://git.kernel.org/linus/c8ffd8bcdd28296a). --- sys/linux/seccomp_riscv64.const | 2 +- sys/linux/sys.txt | 5 +++-- sys/linux/sys_386.const | 2 ++ sys/linux/sys_amd64.const | 2 ++ sys/linux/sys_arm.const | 2 ++ sys/linux/sys_arm64.const | 2 ++ sys/linux/sys_mips64le.const | 2 ++ sys/linux/sys_ppc64le.const | 2 ++ sys/linux/sys_riscv64.const | 2 ++ sys/linux/sys_s390x.const | 2 ++ 10 files changed, 20 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/linux/seccomp_riscv64.const b/sys/linux/seccomp_riscv64.const index ca30b6f4c..41d117a26 100644 --- a/sys/linux/seccomp_riscv64.const +++ b/sys/linux/seccomp_riscv64.const @@ -7,7 +7,7 @@ SECCOMP_FILTER_FLAG_SPEC_ALLOW_LISTENER = 12 SECCOMP_FILTER_FLAG_TSYNC = 1 SECCOMP_GET_ACTION_AVAIL = 2 SECCOMP_GET_NOTIF_SIZES = 3 -SECCOMP_IOCTL_NOTIF_ID_VALID = 1074274562 +SECCOMP_IOCTL_NOTIF_ID_VALID = 2148016386 SECCOMP_IOCTL_NOTIF_RECV = 3226476800 SECCOMP_IOCTL_NOTIF_SEND = 3222806785 SECCOMP_SET_MODE_FILTER = 1 diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 6169e77ff..fd84563fd 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -268,7 +268,8 @@ lchown(file ptr[in, filename], uid uid, gid gid) fchown(fd fd, uid uid, gid gid) fchownat(dirfd fd_dir, file ptr[in, filename], uid uid, gid gid, flags flags[at_flags]) fallocate(fd fd, mode flags[fallocate_mode], off intptr, len intptr) -faccessat(dirfd fd_dir, pathname ptr[in, filename], mode flags[open_mode], flags flags[faccessat_flags]) +faccessat(dirfd fd_dir, pathname ptr[in, filename], mode flags[open_mode]) +faccessat2(dirfd fd_dir, pathname ptr[in, filename], mode flags[open_mode], flags flags[faccessat_flags]) utime(filename ptr[in, filename], times ptr[in, utimbuf]) utimes(filename ptr[in, filename], times ptr[in, itimerval]) futimesat(dir fd_dir, pathname ptr[in, filename], times ptr[in, itimerval]) @@ -948,7 +949,7 @@ mq_open_flags = O_WRONLY, O_RDWR, O_NONBLOCK, O_CREAT, O_EXCL, O_CREAT finit_module_flags = MODULE_INIT_IGNORE_MODVERSIONS, MODULE_INIT_IGNORE_VERMAGIC delete_module_flags = O_NONBLOCK, O_TRUNC kexec_load_flags = KEXEC_ON_CRASH, KEXEC_PRESERVE_CONTEXT, KEXEC_ARCH_386, KEXEC_ARCH_X86_64, KEXEC_ARCH_PPC, KEXEC_ARCH_PPC64, KEXEC_ARCH_IA_64, KEXEC_ARCH_ARM, KEXEC_ARCH_S390, KEXEC_ARCH_SH, KEXEC_ARCH_MIPS, KEXEC_ARCH_MIPS_LE, KEXEC_ARCH_DEFAULT -faccessat_flags = 0x100, 0x200, 0x400, 0x800, 0x1000 +faccessat_flags = AT_EACCESS, AT_SYMLINK_NOFOLLOW, AT_EMPTY_PATH sync_file_flags = SYNC_FILE_RANGE_WAIT_BEFORE, SYNC_FILE_RANGE_WRITE, SYNC_FILE_RANGE_WAIT_AFTER kcmp_flags = KCMP_FILE, KCMP_FILES, KCMP_FS, KCMP_IO, KCMP_SIGHAND, KCMP_SYSVSEM, KCMP_VM rusage_who = RUSAGE_SELF, RUSAGE_CHILDREN, RUSAGE_THREAD diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index 3195e8b24..30dcf0a37 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 328 __NR_exit = 1 __NR_exit_group = 252 __NR_faccessat = 307 +__NR_faccessat2 = 439 __NR_fadvise64 = 250 __NR_fallocate = 324 __NR_fchdir = 133 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index eaa7baa15..08d8bea6b 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 290 __NR_exit = 60 __NR_exit_group = 231 __NR_faccessat = 269 +__NR_faccessat2 = 439 __NR_fadvise64 = 221 __NR_fallocate = 285 __NR_fchdir = 81 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index d47387b66..510ac63e9 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 356 __NR_exit = 1 __NR_exit_group = 248 __NR_faccessat = 334 +__NR_faccessat2 = 439 # __NR_fadvise64 is not set __NR_fallocate = 352 __NR_fchdir = 133 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 194b6ff6b..2bfa1bab0 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 19 __NR_exit = 93 __NR_exit_group = 94 __NR_faccessat = 48 +__NR_faccessat2 = 439 __NR_fadvise64 = 223 __NR_fallocate = 47 __NR_fchdir = 50 diff --git a/sys/linux/sys_mips64le.const b/sys/linux/sys_mips64le.const index 23091c93d..ab105c255 100644 --- a/sys/linux/sys_mips64le.const +++ b/sys/linux/sys_mips64le.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 5284 __NR_exit = 5058 __NR_exit_group = 5205 __NR_faccessat = 5259 +__NR_faccessat2 = 5439 __NR_fadvise64 = 5215 __NR_fallocate = 5279 __NR_fchdir = 5079 diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index c783a042a..e8a65986d 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 314 __NR_exit = 1 __NR_exit_group = 234 __NR_faccessat = 298 +__NR_faccessat2 = 439 __NR_fadvise64 = 233 __NR_fallocate = 309 __NR_fchdir = 133 diff --git a/sys/linux/sys_riscv64.const b/sys/linux/sys_riscv64.const index d28f0c6d9..241ac2021 100644 --- a/sys/linux/sys_riscv64.const +++ b/sys/linux/sys_riscv64.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -605,6 +606,7 @@ __NR_eventfd2 = 19 __NR_exit = 93 __NR_exit_group = 94 __NR_faccessat = 48 +__NR_faccessat2 = 439 __NR_fadvise64 = 223 __NR_fallocate = 47 __NR_fchdir = 50 diff --git a/sys/linux/sys_s390x.const b/sys/linux/sys_s390x.const index 510d343ed..a8f12362e 100644 --- a/sys/linux/sys_s390x.const +++ b/sys/linux/sys_s390x.const @@ -15,6 +15,7 @@ ADJ_STATUS = 16 ADJ_TAI = 128 ADJ_TICK = 16384 ADJ_TIMECONST = 32 +AT_EACCESS = 512 AT_EMPTY_PATH = 4096 AT_FDCWD = 18446744073709551516 AT_NO_AUTOMOUNT = 2048 @@ -577,6 +578,7 @@ __NR_eventfd2 = 323 __NR_exit = 1 __NR_exit_group = 248 __NR_faccessat = 300 +__NR_faccessat2 = 439 __NR_fadvise64 = 253 __NR_fallocate = 314 __NR_fchdir = 133 -- cgit mrf-deployment