Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151047592
D43833.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
D43833.id.diff
View Options
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c
--- a/sys/compat/linux/linux_util.c
+++ b/sys/compat/linux/linux_util.c
@@ -79,22 +79,14 @@
linux_pwd_onexec(struct thread *td)
{
struct nameidata nd;
- struct pwd *pwd;
int error;
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, linux_emul_path);
error = namei(&nd);
if (error != 0) {
- /*
- * Do not bother if we are in chroot or jail.
- */
- pwd = pwd_hold(td);
- if (pwd->pwd_rdir != rootvnode) {
- pwd_drop(pwd);
- return (0);
- }
- pwd_drop(pwd);
- return (error);
+ /* Do not prevent execution if altroot is non-existent. */
+ pwd_altroot(td, NULL);
+ return (0);
}
NDFREE_PNBUF(&nd);
pwd_altroot(td, nd.ni_vp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 3:45 PM (14 m, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30982008
Default Alt Text
D43833.id.diff (725 B)
Attached To
Mode
D43833: linux_pwd_onexec: do not abort image activation if emul path does not exist
Attached
Detach File
Event Timeline
Log In to Comment