Home
last modified time | relevance | path

Searched refs:lookup_flags (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/fs/
Dopen.c123 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()
402 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_faccessat() local
412 lookup_flags &= ~LOOKUP_FOLLOW; in do_faccessat()
414 lookup_flags |= LOOKUP_EMPTY; in do_faccessat()
423 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
458 if (retry_estale(res, lookup_flags)) { in do_faccessat()
459 lookup_flags |= LOOKUP_REVAL; in do_faccessat()
[all …]
Dfsopen.c162 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()
324 int lookup_flags = 0; in SYSCALL_DEFINE5() local
414 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5()
418 param.name = getname_flags(_value, lookup_flags, NULL); in SYSCALL_DEFINE5()
Dinit.c32 int lookup_flags = LOOKUP_MOUNTPOINT; in init_umount() local
37 lookup_flags |= LOOKUP_FOLLOW; in init_umount()
38 ret = kern_path(name, lookup_flags, &path); in init_umount()
84 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_chown() local
88 error = kern_path(filename, lookup_flags, &path); in init_chown()
128 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_stat() local
132 error = kern_path(filename, lookup_flags, &path); in init_stat()
Dxattr.c557 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() argument
562 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
571 if (retry_estale(error, lookup_flags)) { in path_setxattr()
572 lookup_flags |= LOOKUP_REVAL; in path_setxattr()
655 size_t size, unsigned int lookup_flags) in path_getxattr() argument
660 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
665 if (retry_estale(error, lookup_flags)) { in path_getxattr()
666 lookup_flags |= LOOKUP_REVAL; in path_getxattr()
731 size_t size, unsigned int lookup_flags) in path_listxattr() argument
736 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr()
[all …]
Dutimes.c82 int lookup_flags = 0, error; in do_utimes_path() local
88 lookup_flags |= LOOKUP_FOLLOW; in do_utimes_path()
90 lookup_flags |= LOOKUP_EMPTY; in do_utimes_path()
93 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes_path()
99 if (retry_estale(error, lookup_flags)) { in do_utimes_path()
100 lookup_flags |= LOOKUP_REVAL; in do_utimes_path()
Dstat.c170 unsigned lookup_flags = 0; in vfs_statx() local
178 lookup_flags |= LOOKUP_FOLLOW; in vfs_statx()
180 lookup_flags |= LOOKUP_AUTOMOUNT; in vfs_statx()
182 lookup_flags |= LOOKUP_EMPTY; in vfs_statx()
185 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_statx()
196 if (retry_estale(error, lookup_flags)) { in vfs_statx()
197 lookup_flags |= LOOKUP_REVAL; in vfs_statx()
401 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local
407 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); in do_readlinkat()
423 if (retry_estale(error, lookup_flags)) { in do_readlinkat()
[all …]
Dfhandle.c98 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()
Dnamei.c1175 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument
1190 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount()
1208 int *count, unsigned lookup_flags) in __traverse_mounts() argument
1243 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts()
1261 int *count, unsigned lookup_flags) in traverse_mounts() argument
1272 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts()
3392 int flags = op->lookup_flags; in do_filp_open()
3411 int flags = op->lookup_flags | LOOKUP_ROOT; in do_file_open_root()
3435 struct path *path, unsigned int lookup_flags) in filename_create() argument
3442 bool is_dir = (lookup_flags & LOOKUP_DIRECTORY); in filename_create()
[all …]
Dstatfs.c101 unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT; in user_statfs() local
103 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
107 if (retry_estale(error, lookup_flags)) { in user_statfs()
108 lookup_flags |= LOOKUP_REVAL; in user_statfs()
Dexec.c134 .lookup_flags = LOOKUP_FOLLOW, in SYSCALL_DEFINE1()
902 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat()
908 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat()
910 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat()
2068 int lookup_flags = (flags & AT_EMPTY_PATH) ? LOOKUP_EMPTY : 0; in SYSCALL_DEFINE5() local
2071 getname_flags(filename, lookup_flags, NULL), in SYSCALL_DEFINE5()
2089 int lookup_flags = (flags & AT_EMPTY_PATH) ? LOOKUP_EMPTY : 0; in COMPAT_SYSCALL_DEFINE5() local
2092 getname_flags(filename, lookup_flags, NULL), in COMPAT_SYSCALL_DEFINE5()
Dinternal.h128 int lookup_flags; member
Dnamespace.c1745 int lookup_flags = LOOKUP_MOUNTPOINT; in ksys_umount() local
1750 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount()
1751 ret = user_path_at(AT_FDCWD, name, lookup_flags, &path); in ksys_umount()
2421 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in SYSCALL_DEFINE3() local
2437 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
2439 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3()
2441 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3()
2450 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
/Linux-v5.10/net/ipv6/netfilter/
Dnft_fib_ipv6.c27 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()
Dip6t_rpfilter.c44 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.10/fs/notify/fanotify/
Dfanotify_user.c692 unsigned int lookup_flags = 0; in fanotify_find_path() local
695 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path()
697 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path()
699 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
/Linux-v5.10/fs/nfs/
Ddir.c1668 unsigned int lookup_flags = 0; in nfs_atomic_open() local
1693 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open()
1769 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open()