MFC r301764:
Fix a vnode leak when giving a child jail a too-long path when debug.disablefullpath=1.
This commit is contained in:
parent
b19195f812
commit
397ec06345
@ -1022,6 +1022,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
|
||||
if (len + (path[0] == '/' && strcmp(mypr->pr_path, "/")
|
||||
? strlen(mypr->pr_path) : 0) > MAXPATHLEN) {
|
||||
error = ENAMETOOLONG;
|
||||
vrele(root);
|
||||
goto done_free;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user