Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163227576
D26695.id78028.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
573 B
Referenced Files
None
Subscribers
None
D26695.id78028.diff
View Options
Index: head/sys/kern/vfs_lookup.c
===================================================================
--- head/sys/kern/vfs_lookup.c
+++ head/sys/kern/vfs_lookup.c
@@ -595,8 +595,17 @@
for (;;) {
ndp->ni_startdir = dp;
error = lookup(ndp);
- if (error != 0)
+ if (error != 0) {
+ /*
+ * Override an error to not allow user to use
+ * BENEATH as an oracle.
+ */
+ if ((ndp->ni_lcf & (NI_LCF_LATCH |
+ NI_LCF_BENEATH_LATCHED)) == NI_LCF_LATCH)
+ error = ENOTCAPABLE;
goto out;
+ }
+
/*
* If not a symbolic link, we're done.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 6:06 AM (5 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35311301
Default Alt Text
D26695.id78028.diff (573 B)
Attached To
Mode
D26695: Do not allow to use O_BENEATH as an oracle.
Attached
Detach File
Event Timeline
Log In to Comment