io_[gs]etxattr_prep(): just use getname()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Sep 2024 04:28:00 +0000 (00:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Nov 2024 18:28:56 +0000 (13:28 -0500)
commitb8cdd2530c7d7156413c5dfc1f4bc83c1d26b446
treeac36aad4edbdf51e51e53402add552ce6ece4a9c
parentdc7e76ba7a6057e4c12d449db49f026d0ec238ec
io_[gs]etxattr_prep(): just use getname()

getname_flags(pathname, LOOKUP_FOLLOW) is obviously bogus - following
trailing symlinks has no impact on how to copy the pathname from userland...

Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
io_uring/xattr.c