Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102775291
D38245.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
D38245.diff
View Options
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1129,6 +1129,13 @@
if (de->td_node->tn_type == VDIR) {
struct tmpfs_node *n;
+ error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread);
+ if (error) {
+ if (newname != NULL)
+ free(newname, M_TMPFSNAME);
+ goto out_locked;
+ }
+
/*
* Ensure the target directory is not a child of the
* directory being moved. Otherwise, we'd end up
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 12:28 AM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14687567
Default Alt Text
D38245.diff (514 B)
Attached To
Mode
D38245: [tmpfs]: Fix tmpfs issure reproduced by pjdfstest tests/rename/09.t
Attached
Detach File
Event Timeline
Log In to Comment