Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139422114
D25886.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
D25886.id.diff
View Options
Index: head/sys/kern/vfs_lookup.c
===================================================================
--- head/sys/kern/vfs_lookup.c
+++ head/sys/kern/vfs_lookup.c
@@ -215,7 +215,11 @@
/*
* For dotdot lookups in capability mode, only allow the component
* lookup to succeed if the resulting directory was already traversed
- * during the operation. Also fail dotdot lookups for non-local
+ * during the operation. This catches situations where already
+ * traversed directory is moved to different parent, and then we walk
+ * over it with dotdots.
+ *
+ * Also allow to force failure of dotdot lookups for non-local
* filesystems, where external agents might assist local lookups to
* escape the compartment.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 9:57 PM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26913579
Default Alt Text
D25886.id.diff (726 B)
Attached To
Mode
D25886: Add O_RESOLVE_BENEATH and AT_RESOLVE_BENEATH to mimic Linux' RESOLVE_BENEATH
Attached
Detach File
Event Timeline
Log In to Comment