/Linux-v5.4/fs/ |
D | open.c | 123 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_sys_truncate() local 131 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 136 if (retry_estale(error, lookup_flags)) { in do_sys_truncate() 137 lookup_flags |= LOOKUP_REVAL; in do_sys_truncate() 355 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_faccessat() local 398 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat() 433 if (retry_estale(res, lookup_flags)) { in do_faccessat() 434 lookup_flags |= LOOKUP_REVAL; in do_faccessat() 457 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; in ksys_chdir() local 459 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in ksys_chdir() [all …]
|
D | xattr.c | 460 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() argument 465 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 474 if (retry_estale(error, lookup_flags)) { in path_setxattr() 475 lookup_flags |= LOOKUP_REVAL; in path_setxattr() 558 size_t size, unsigned int lookup_flags) in path_getxattr() argument 563 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr() 568 if (retry_estale(error, lookup_flags)) { in path_getxattr() 569 lookup_flags |= LOOKUP_REVAL; in path_getxattr() 634 size_t size, unsigned int lookup_flags) in path_listxattr() argument 639 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr() [all …]
|
D | utimes.c | 116 int lookup_flags = 0; in do_utimes() local 119 lookup_flags |= LOOKUP_FOLLOW; in do_utimes() 121 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes() 127 if (retry_estale(error, lookup_flags)) { in do_utimes() 128 lookup_flags |= LOOKUP_REVAL; in do_utimes()
|
D | fsopen.c | 162 unsigned int lookup_flags; in SYSCALL_DEFINE3() local 174 lookup_flags = LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 176 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3() 178 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 180 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3() 181 ret = user_path_at(dfd, path, lookup_flags, &target); in SYSCALL_DEFINE3()
|
D | stat.c | 173 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT; in vfs_statx() local 180 lookup_flags &= ~LOOKUP_FOLLOW; in vfs_statx() 182 lookup_flags &= ~LOOKUP_AUTOMOUNT; in vfs_statx() 184 lookup_flags |= LOOKUP_EMPTY; in vfs_statx() 187 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_statx() 193 if (retry_estale(error, lookup_flags)) { in vfs_statx() 194 lookup_flags |= LOOKUP_REVAL; in vfs_statx() 393 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local 399 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); in do_readlinkat() 415 if (retry_estale(error, lookup_flags)) { in do_readlinkat() [all …]
|
D | fhandle.c | 98 int lookup_flags; in SYSCALL_DEFINE5() local 104 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5() 106 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5() 107 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
|
D | namei.c | 3551 int flags = op->lookup_flags; in do_filp_open() 3570 int flags = op->lookup_flags | LOOKUP_ROOT; in do_file_open_root() 3594 struct path *path, unsigned int lookup_flags) in filename_create() argument 3601 bool is_dir = (lookup_flags & LOOKUP_DIRECTORY); in filename_create() 3607 lookup_flags &= LOOKUP_REVAL; in filename_create() 3609 name = filename_parentat(dfd, name, lookup_flags, path, &last, &type); in filename_create() 3625 lookup_flags |= LOOKUP_CREATE | LOOKUP_EXCL; in filename_create() 3627 dentry = __lookup_hash(&last, path->dentry, lookup_flags); in filename_create() 3665 struct path *path, unsigned int lookup_flags) in kern_path_create() argument 3668 path, lookup_flags); in kern_path_create() [all …]
|
D | statfs.c | 99 unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT; in user_statfs() local 101 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 105 if (retry_estale(error, lookup_flags)) { in user_statfs() 106 lookup_flags |= LOOKUP_REVAL; in user_statfs()
|
D | exec.c | 131 .lookup_flags = LOOKUP_FOLLOW, in SYSCALL_DEFINE1() 847 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat() 853 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat() 855 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat() 1970 int lookup_flags = (flags & AT_EMPTY_PATH) ? LOOKUP_EMPTY : 0; in SYSCALL_DEFINE5() local 1973 getname_flags(filename, lookup_flags, NULL), in SYSCALL_DEFINE5() 1991 int lookup_flags = (flags & AT_EMPTY_PATH) ? LOOKUP_EMPTY : 0; in COMPAT_SYSCALL_DEFINE5() local 1994 getname_flags(filename, lookup_flags, NULL), in COMPAT_SYSCALL_DEFINE5()
|
D | internal.h | 121 int lookup_flags; member
|
D | namespace.c | 1672 int lookup_flags = 0; in ksys_umount() local 1681 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount() 1683 retval = user_path_mountpoint_at(AT_FDCWD, name, lookup_flags, &path); in ksys_umount() 2363 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in SYSCALL_DEFINE3() local 2379 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 2381 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3() 2383 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3() 2392 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
|
/Linux-v5.4/net/ipv6/netfilter/ |
D | nft_fib_ipv6.c | 27 int lookup_flags = 0; in nft_fib6_flowi_init() local 38 lookup_flags |= RT6_LOOKUP_F_IFACE; in nft_fib6_flowi_init() 43 lookup_flags |= RT6_LOOKUP_F_HAS_SADDR; in nft_fib6_flowi_init() 50 return lookup_flags; in nft_fib6_flowi_init() 151 int lookup_flags; in nft_fib6_eval() local 164 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval() 174 lookup_flags); in nft_fib6_eval()
|
D | ip6t_rpfilter.c | 44 int lookup_flags; in rpfilter_lookup_reverse6() local 48 lookup_flags = RT6_LOOKUP_F_HAS_SADDR; in rpfilter_lookup_reverse6() 50 lookup_flags = 0; in rpfilter_lookup_reverse6() 56 lookup_flags |= RT6_LOOKUP_F_IFACE; in rpfilter_lookup_reverse6() 63 rt = (void *)ip6_route_lookup(net, &fl6, skb, lookup_flags); in rpfilter_lookup_reverse6()
|
/Linux-v5.4/fs/notify/fanotify/ |
D | fanotify_user.c | 557 unsigned int lookup_flags = 0; in fanotify_find_path() local 560 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path() 562 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path() 564 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
|
/Linux-v5.4/fs/nfs/ |
D | dir.c | 1504 unsigned int lookup_flags = 0; in nfs_atomic_open() local 1529 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open() 1605 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open()
|