Home
last modified time | relevance | path

Searched refs:AT_EMPTY_PATH (Results 1 – 24 of 24) sorted by relevance

/linux/tools/testing/selftests/exec/
H A Dexecveat.c213 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 Dcheck-exec.c223 execveat(fd, "", argv, NULL, AT_EMPTY_PATH | AT_EXECVE_CHECK); in test_exec_fd()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_file_handle_test.c156 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 Dpidfd_bind_mount.c133 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 Dfhandle.c138 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 Dxattr.c695 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 Dutimes.c86 if (flags & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) in do_utimes_path()
91 if (flags & AT_EMPTY_PATH) in do_utimes_path()
H A Dopen.c474 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 Dexec.c888 ~(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 Dstat.c339 if (flags & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT | AT_EMPTY_PATH | in vfs_statx()
H A Dnamespace.c2903 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 Dnamei.c216 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 Dfcntl.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dfcntl.h107 #define AT_EMPTY_PATH 0x1000 /* Allow empty relative macro
/linux/include/uapi/linux/
H A Dfcntl.h107 #define AT_EMPTY_PATH 0x1000 /* Allow empty relative macro
/linux/samples/check-exec/
H A Dinc.c82 AT_EMPTY_PATH | AT_EXECVE_CHECK); in interpret_stream()
/linux/arch/um/os-Linux/skas/
H A Dprocess.c227 execveat(stub_exe_fd, "", argv, NULL, AT_EMPTY_PATH); in userspace_tramp()
/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c328 sys_execveat(exec_fd, "", NULL, NULL, AT_EMPTY_PATH); in main()
/linux/Documentation/userspace-api/
H A Dcheck_exec.rst61 ``AT_EXECVE_CHECK`` should be used with ``AT_EMPTY_PATH`` to check against a
/linux/Documentation/process/
H A Dadding-syscalls.rst140 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 Dadding-syscalls.rst156 ``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 Dadding-syscalls.rst160 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 Dfs_test.c2028 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 Dfs.h2847 if (!(flags & AT_EMPTY_PATH)) in getname_maybe_null()