MFC r301764:

Fix a vnode leak when giving a child jail a too-long path when
  debug.disablefullpath=1.
This commit is contained in:
jamie 2016-06-15 01:59:55 +00:00
parent b19195f812
commit 397ec06345

View File

@ -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;
}
}