/kernel/linux/linux-6.6/fs/ |
H A D | open.c | 125 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_sys_truncate() local 133 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 138 if (retry_estale(error, lookup_flags)) { in do_sys_truncate() 139 lookup_flags |= LOOKUP_REVAL; in do_sys_truncate() 462 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_faccessat() local 472 lookup_flags &= ~LOOKUP_FOLLOW; in do_faccessat() 474 lookup_flags |= LOOKUP_EMPTY; in do_faccessat() 483 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat() 518 if (retry_estale(res, lookup_flags)) { in do_faccessat() 519 lookup_flags | in do_faccessat() 549 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; SYSCALL_DEFINE1() local 597 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; SYSCALL_DEFINE1() local 679 unsigned int lookup_flags; do_fchmodat() local 799 int lookup_flags; do_fchownat() local 1223 int lookup_flags = 0; build_open_flags() local [all...] |
H A D | init.c | 32 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()
|
H A 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() 359 int lookup_flags = 0; in SYSCALL_DEFINE5() local 450 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5() 454 param.name = getname_flags(_value, lookup_flags, NULL); in SYSCALL_DEFINE5()
|
H A D | utimes.c | 84 int lookup_flags = 0, error; in do_utimes_path() local 90 lookup_flags |= LOOKUP_FOLLOW; in do_utimes_path() 92 lookup_flags |= LOOKUP_EMPTY; in do_utimes_path() 95 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes_path() 101 if (retry_estale(error, lookup_flags)) { in do_utimes_path() 102 lookup_flags |= LOOKUP_REVAL; in do_utimes_path()
|
H A D | stat.c | 205 int lookup_flags = 0; in getname_statx_lookup_flags() local 208 lookup_flags |= LOOKUP_FOLLOW; in getname_statx_lookup_flags() 210 lookup_flags |= LOOKUP_AUTOMOUNT; in getname_statx_lookup_flags() 212 lookup_flags |= LOOKUP_EMPTY; in getname_statx_lookup_flags() 214 return lookup_flags; in getname_statx_lookup_flags() 236 unsigned int lookup_flags = getname_statx_lookup_flags(flags); in vfs_statx() local 244 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in vfs_statx() 266 if (retry_estale(error, lookup_flags)) { in vfs_statx() 267 lookup_flags |= LOOKUP_REVAL; in vfs_statx() 488 unsigned int lookup_flags in do_readlinkat() local [all...] |
H A D | fhandle.c | 103 int lookup_flags; in SYSCALL_DEFINE5() local 110 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5() 113 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5() 114 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
|
H A D | xattr.c | 661 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() 667 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 677 if (retry_estale(error, lookup_flags)) { in path_setxattr() 678 lookup_flags |= LOOKUP_REVAL; in path_setxattr() 780 size_t size, unsigned int lookup_flags) in path_getxattr() 785 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr() 790 if (retry_estale(error, lookup_flags)) { in path_getxattr() 791 lookup_flags |= LOOKUP_REVAL; in path_getxattr() 857 size_t size, unsigned int lookup_flags) in path_listxattr() 862 error = user_path_at(AT_FDCWD, pathname, lookup_flags, in path_listxattr() 659 path_setxattr(const char __user *pathname, const char __user *name, const void __user *value, size_t size, int flags, unsigned int lookup_flags) path_setxattr() argument 778 path_getxattr(const char __user *pathname, const char __user *name, void __user *value, size_t size, unsigned int lookup_flags) path_getxattr() argument 856 path_listxattr(const char __user *pathname, char __user *list, size_t size, unsigned int lookup_flags) path_listxattr() argument 921 path_removexattr(const char __user *pathname, const char __user *name, unsigned int lookup_flags) path_removexattr() argument [all...] |
H A D | namei.c | 1347 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument 1362 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount() 1380 int *count, unsigned lookup_flags) in __traverse_mounts() 1415 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts() 1433 int *count, unsigned lookup_flags) in traverse_mounts() 1444 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts() 3814 int flags = op->lookup_flags; in do_filp_open() 3833 int flags = op->lookup_flags; in do_file_open_root() 3854 struct path *path, unsigned int lookup_flags) in filename_create() 3858 bool want_dir = lookup_flags in filename_create() 1379 __traverse_mounts(struct path *path, unsigned flags, bool *jumped, int *count, unsigned lookup_flags) __traverse_mounts() argument 1432 traverse_mounts(struct path *path, bool *jumped, int *count, unsigned lookup_flags) traverse_mounts() argument 3853 filename_create(int dfd, struct filename *name, struct path *path, unsigned int lookup_flags) filename_create() argument 3921 kern_path_create(int dfd, const char *pathname, struct path *path, unsigned int lookup_flags) kern_path_create() argument 3941 user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags) user_path_create() argument 4024 unsigned int lookup_flags = 0; do_mknodat() local 4127 unsigned int lookup_flags = LOOKUP_DIRECTORY; do_mkdirat() local 4223 unsigned int lookup_flags = 0; do_rmdir() local 4364 unsigned int lookup_flags = 0; do_unlinkat() local 4487 unsigned int lookup_flags = 0; do_symlinkat() local 4923 unsigned int lookup_flags = 0, target_flags = LOOKUP_RENAME_TARGET; do_renameat2() local [all...] |
H A D | statfs.c | 101 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 34 int lookup_flags; member 47 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH, }, 55 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH, }, 58 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, 62 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, .tbid = 100, 66 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, 70 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, .tbid = 100, 201 skel->bss->lookup_flags = tests[i].lookup_flags; in test_fib_lookup() 220 if (tests[i].lookup_flags in test_fib_lookup() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A 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() 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 | in do_faccessat() 489 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; SYSCALL_DEFINE1() local 537 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; SYSCALL_DEFINE1() local 617 unsigned int lookup_flags = LOOKUP_FOLLOW; do_fchmodat() local 689 int lookup_flags; do_fchownat() local 998 int lookup_flags = 0; build_open_flags() local [all...] |
H A D | xattr.c | 557 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() 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() 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() 736 error = user_path_at(AT_FDCWD, pathname, lookup_flags, in path_listxattr() 555 path_setxattr(const char __user *pathname, const char __user *name, const void __user *value, size_t size, int flags, unsigned int lookup_flags) path_setxattr() argument 653 path_getxattr(const char __user *pathname, const char __user *name, void __user *value, size_t size, unsigned int lookup_flags) path_getxattr() argument 730 path_listxattr(const char __user *pathname, char __user *list, size_t size, unsigned int lookup_flags) path_listxattr() argument 791 path_removexattr(const char __user *pathname, const char __user *name, unsigned int lookup_flags) path_removexattr() argument [all...] |
H A D | init.c | 32 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()
|
H A 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() 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()
|
H A D | utimes.c | 82 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()
|
H A 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()
|
H A D | stat.c | 178 unsigned lookup_flags = 0; in vfs_statx() local 186 lookup_flags |= LOOKUP_FOLLOW; in vfs_statx() 188 lookup_flags |= LOOKUP_AUTOMOUNT; in vfs_statx() 190 lookup_flags |= LOOKUP_EMPTY; in vfs_statx() 193 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_statx() 204 if (retry_estale(error, lookup_flags)) { in vfs_statx() 205 lookup_flags |= LOOKUP_REVAL; in vfs_statx() 408 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local 414 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); in do_readlinkat() 430 if (retry_estale(error, lookup_flags)) { in do_readlinkat() [all...] |
H A D | namei.c | 1191 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument 1206 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount() 1224 int *count, unsigned lookup_flags) in __traverse_mounts() 1259 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts() 1277 int *count, unsigned lookup_flags) in traverse_mounts() 1288 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts() 3455 int flags = op->lookup_flags; in do_filp_open() 3474 int flags = op->lookup_flags; in do_file_open_root() 3497 struct path *path, unsigned int lookup_flags) in filename_create() 3504 bool is_dir = (lookup_flags in filename_create() 1223 __traverse_mounts(struct path *path, unsigned flags, bool *jumped, int *count, unsigned lookup_flags) __traverse_mounts() argument 1276 traverse_mounts(struct path *path, bool *jumped, int *count, unsigned lookup_flags) traverse_mounts() argument 3496 filename_create(int dfd, struct filename *name, struct path *path, unsigned int lookup_flags) filename_create() argument 3567 kern_path_create(int dfd, const char *pathname, struct path *path, unsigned int lookup_flags) kern_path_create() argument 3584 user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags) user_path_create() argument 3645 unsigned int lookup_flags = 0; do_mknodat() local 3724 unsigned int lookup_flags = LOOKUP_DIRECTORY; do_mkdirat() local 3799 unsigned int lookup_flags = 0; do_rmdir() local 3930 unsigned int lookup_flags = 0; do_unlinkat() local 4035 unsigned int lookup_flags = 0; do_symlinkat() local 4444 unsigned int lookup_flags = 0, target_flags = LOOKUP_RENAME_TARGET; do_renameat2() local [all...] |
H A D | statfs.c | 101 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()
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | xattr.c | 126 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_getxattr() local 133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr() 138 if (retry_estale(ret, lookup_flags)) { in io_getxattr() 139 lookup_flags |= LOOKUP_REVAL; in io_getxattr() 235 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_setxattr() local 242 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr() 246 if (retry_estale(ret, lookup_flags)) { in io_setxattr() 247 lookup_flags |= LOOKUP_REVAL; in io_setxattr()
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A 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()
|
H A 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() 46 lookup_flags |= RT6_LOOKUP_F_HAS_SADDR; in nft_fib6_flowi_init() 53 return lookup_flags; in nft_fib6_flowi_init() 165 int lookup_flags; in nft_fib6_eval() local 178 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval() 191 lookup_flags); in nft_fib6_eval()
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6t_rpfilter.c | 46 int lookup_flags; in rpfilter_lookup_reverse6() local 50 lookup_flags = RT6_LOOKUP_F_HAS_SADDR; in rpfilter_lookup_reverse6() 52 lookup_flags = 0; in rpfilter_lookup_reverse6() 58 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()
|
H A D | nft_fib_ipv6.c | 27 int lookup_flags = 0; in nft_fib6_flowi_init() local 42 lookup_flags |= RT6_LOOKUP_F_IFACE; in nft_fib6_flowi_init() 49 lookup_flags |= RT6_LOOKUP_F_HAS_SADDR; in nft_fib6_flowi_init() 56 return lookup_flags; in nft_fib6_flowi_init() 170 int lookup_flags; in nft_fib6_eval() local 183 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval() 196 lookup_flags); in nft_fib6_eval()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | fib_lookup.c | 11 int lookup_flags = 0; variable 17 lookup_flags); in fib_lookup()
|