]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix a permission handling bug during VOP_RENAME
authorasomers <asomers@FreeBSD.org>
Wed, 8 May 2019 22:28:13 +0000 (22:28 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 8 May 2019 22:28:13 +0000 (22:28 +0000)
commit03c7ad1303d04af76b0f37889642d8b2a96e9566
tree2c7f40546e4ef2d73211ac21c291176b4e888add
parentc7552fcf1a22c7d068de7294467046e02fedef4c
fusefs: fix a permission handling bug during VOP_RENAME

If the file to be renamed is a directory and it's going to get a new parent,
then the user must have write permissions to that directory, because the
".." dirent must be changed.

Reported by: pjdfstest
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/default_permissions.cc