Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157041862
D17929.id50242.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D17929.id50242.diff
View Options
Index: lib/libjail/jail.c
===================================================================
--- lib/libjail/jail.c
+++ lib/libjail/jail.c
@@ -1050,10 +1050,18 @@
kl = kldload(name);
else if (strncmp(name, "allow.mount.", 12) == 0) {
/* Load the matching filesystem */
- kl = kldload(name + 12);
+ const char *modname;
+
+ if (strcmp("fusefs", name + 12) == 0 ||
+ strcmp("nofusefs", name + 12) == 0) {
+ modname = "fuse";
+ } else {
+ modname = name + 12;
+ }
+ kl = kldload(modname);
if (kl < 0 && errno == ENOENT &&
- strncmp(name + 12, "no", 2) == 0)
- kl = kldload(name + 14);
+ strncmp(modname, "no", 2) == 0)
+ kl = kldload(modname + 2);
} else {
errno = ENOENT;
return (-1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 2:25 AM (3 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33286888
Default Alt Text
D17929.id50242.diff (732 B)
Attached To
Mode
D17929: libjail: fix handling of allow.mount.fusefs in jailparam_init
Attached
Detach File
Event Timeline
Log In to Comment