/linux/tools/testing/selftests/exec/ |
H A D | execveat.c | 213 fail += check_execveat(fd, "", AT_EMPTY_PATH); in check_execveat_pathmax() 257 ret = check_execveat_invoked_rc(fd, "", AT_EMPTY_PATH, 0, 0); in check_execveat_comm() 313 fail += check_execveat(fd, "", AT_EMPTY_PATH); in run_tests() 315 fail += check_execveat(fd_cloexec, "", AT_EMPTY_PATH); in run_tests() 317 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests() 322 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests() 325 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests() 330 fail += check_execveat(fd_ephemeral_path, "", AT_EMPTY_PATH); in run_tests() 334 fail += check_execveat_fail(fd, NULL, AT_EMPTY_PATH, EFAULT); in run_tests() 343 fail += check_execveat(fd_symlink, "", AT_EMPTY_PATH); in run_tests() [all …]
|
H A D | check-exec.c | 223 execveat(fd, "", argv, NULL, AT_EMPTY_PATH | AT_EXECVE_CHECK); in test_exec_fd()
|
/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_file_handle_test.c | 156 ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 203 ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 249 ASSERT_EQ(name_to_handle_at(self->pidfd, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 285 ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 324 ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 363 ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 421 ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 442 …handle_at(self->child_pidfd2, "lookup-is-not-possible-with-pidfs", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F() 468 …ASSERT_NE(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH | AT_HANDLE_CONNECT… in TEST_F() 490 …ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH | AT_HANDLE_FID), 0… in TEST_F()
|
H A D | pidfd_bind_mount.c | 133 fd_tree = sys_open_tree(self->pidfd, "", OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC | AT_EMPTY_PATH); in TEST_F() 169 fd_tree = sys_open_tree(self->pidfd, "", OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC | AT_EMPTY_PATH); in TEST_F()
|
/linux/fs/ |
H A D | fhandle.c | 138 if (flag & ~(AT_SYMLINK_FOLLOW | AT_EMPTY_PATH | AT_HANDLE_FID | in SYSCALL_DEFINE5() 151 flag & (AT_HANDLE_FID | AT_EMPTY_PATH)) in SYSCALL_DEFINE5() 159 if (flag & AT_EMPTY_PATH) in SYSCALL_DEFINE5()
|
H A D | xattr.c | 695 if ((at_flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) in path_setxattrat() 761 return path_setxattrat(fd, NULL, AT_EMPTY_PATH, name, in SYSCALL_DEFINE5() 842 if ((at_flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) in path_getxattrat() 904 return path_getxattrat(fd, NULL, AT_EMPTY_PATH, name, value, size); in SYSCALL_DEFINE4() 976 if ((at_flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) in path_listxattrat() 1012 return path_listxattrat(fd, NULL, AT_EMPTY_PATH, list, size); in SYSCALL_DEFINE3() 1073 if ((at_flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) in path_removexattrat() 1111 return path_removexattrat(fd, NULL, AT_EMPTY_PATH, name); in SYSCALL_DEFINE2()
|
H A D | utimes.c | 86 if (flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) in do_utimes_path() 91 if (flags & AT_EMPTY_PATH) in do_utimes_path()
|
H A D | open.c | 474 if (flags & ~(AT_EACCESS | AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) in do_faccessat() 479 if (flags & AT_EMPTY_PATH) in do_faccessat() 680 if (unlikely(flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH))) in do_fchmodat() 684 if (flags & AT_EMPTY_PATH) in do_fchmodat() 800 if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) in do_fchownat() 804 if (flag & AT_EMPTY_PATH) in do_fchownat()
|
H A D | exec.c | 888 ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH | AT_EXECVE_CHECK)) != 0) in do_open_execat() 892 if (flags & AT_EMPTY_PATH) in do_open_execat()
|
H A D | stat.c | 339 if (flags & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT | AT_EMPTY_PATH | in vfs_statx()
|
H A D | namespace.c | 2903 if (flags & ~(AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_RECURSIVE | in SYSCALL_DEFINE3() 2915 if (flags & AT_EMPTY_PATH) in SYSCALL_DEFINE3() 4780 if (flags & AT_EMPTY_PATH) in build_mount_kattr() 4858 if (flags & ~(AT_EMPTY_PATH | in SYSCALL_DEFINE5()
|
H A D | namei.c | 216 int flags = (uflags & AT_EMPTY_PATH) ? LOOKUP_EMPTY : 0; in getname_uflags() 4827 if ((flags & ~(AT_SYMLINK_FOLLOW | AT_EMPTY_PATH)) != 0) { in do_linkat() 4837 if (flags & AT_EMPTY_PATH) in do_linkat()
|
/linux/tools/include/uapi/linux/ |
H A D | fcntl.h |
|
/linux/tools/perf/trace/beauty/include/uapi/linux/ |
H A D | fcntl.h | 107 #define AT_EMPTY_PATH 0x1000 /* Allow empty relative macro
|
/linux/include/uapi/linux/ |
H A D | fcntl.h | 107 #define AT_EMPTY_PATH 0x1000 /* Allow empty relative macro
|
/linux/samples/check-exec/ |
H A D | inc.c | 82 AT_EMPTY_PATH | AT_EXECVE_CHECK); in interpret_stream()
|
/linux/arch/um/os-Linux/skas/ |
H A D | process.c | 227 execveat(stub_exe_fd, "", argv, NULL, AT_EMPTY_PATH); in userspace_tramp()
|
/linux/tools/testing/selftests/proc/ |
H A D | proc-pid-vm.c | 328 sys_execveat(exec_fd, "", NULL, NULL, AT_EMPTY_PATH); in main()
|
/linux/Documentation/userspace-api/ |
H A D | check_exec.rst | 61 ``AT_EXECVE_CHECK`` should be used with ``AT_EMPTY_PATH`` to check against a
|
/linux/Documentation/process/ |
H A D | adding-syscalls.rst | 140 already-opened file descriptor using the ``AT_EMPTY_PATH`` flag, effectively 144 - xyzzyat(fd, "", ..., AT_EMPTY_PATH) is equivalent to fxyzzy(fd, ...) 147 :manpage:`openat(2)` man page; for an example of AT_EMPTY_PATH, see the
|
/linux/Documentation/translations/it_IT/process/ |
H A D | adding-syscalls.rst | 156 ``AT_EMPTY_PATH``, in pratica otterremmo gratuitamente l'operazione 160 - xyzzyat(fd, "", ..., AT_EMPTY_PATH) is equivalent to fxyzzy(fd, ...) 163 man :manpage:`openat(2)`; per un esempio di AT_EMPTY_PATH, leggere la pagina
|
/linux/Documentation/translations/sp_SP/process/ |
H A D | adding-syscalls.rst | 160 un descriptor de archivo ya abierto usando el flag ``AT_EMPTY_PATH``, 164 - xyzzyat(fd, "", ..., AT_EMPTY_PATH) es equivalente a fxyzzy(fd, ...) 167 revise el man page :manpage:`openat(2)`; para un ejemplo de AT_EMPTY_PATH,
|
/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 2028 AT_EMPTY_PATH | AT_EXECVE_CHECK); in test_check_exec() 2534 AT_EMPTY_PATH | OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC); in TEST_F_FORK()
|
/linux/include/linux/ |
H A D | fs.h | 2847 if (!(flags & AT_EMPTY_PATH)) in getname_maybe_null()
|