Page MenuHomeFreeBSD

D26695.1785214543.diff
No OneTemporary

Size
565 B
Referenced Files
None
Subscribers
None

D26695.1785214543.diff

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

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)

Event Timeline