Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162985511
D26695.id77944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D26695.id77944.diff
View Options
Index: sys/kern/vfs_lookup.c
===================================================================
--- sys/kern/vfs_lookup.c
+++ 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
Sun, Jul 19, 10:36 PM (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35253653
Default Alt Text
D26695.id77944.diff (558 B)
Attached To
Mode
D26695: Do not allow to use O_BENEATH as an oracle.
Attached
Detach File
Event Timeline
Log In to Comment