Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148048556
D26695.1785214543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
565 B
Referenced Files
None
Subscribers
None
D26695.1785214543.diff
View Options
Index: sys/kern/vfs_lookup.c
===================================================================
--- sys/kern/vfs_lookup.c
+++ sys/kern/vfs_lookup.c
@@ -595,8 +595,18 @@
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
Tue, Jul 28, 4:55 AM (18 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29286880
Default Alt Text
D26695.1785214543.diff (565 B)
Attached To
Mode
D26695: Do not allow to use O_BENEATH as an oracle.
Attached
Detach File
Event Timeline
Log In to Comment