Fix a vnode leak when giving a child jail a too-long path when
debug.disablefullpath=1.
This commit is contained in:
parent
d80f1dd1d7
commit
932a6e432d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301764
@ -1010,6 +1010,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…
Reference in New Issue
Block a user