Bug 129418
Summary: | unable to run windows binaries in kernel 2.6.7 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Anand Buddhdev <arb> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2 | CC: | wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-13 22:51:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Anand Buddhdev
2004-08-08 17:54:50 UTC
that's a bug in the wine script not in the kernel.... Ok, so I can try to fix the wine init script. Obviously, the modprobe isn't needed any more, and the script should really check for the presence of /proc/sys/fs/binfmt_misc before trying modprobe. But there's still a problem. Under kernel 2.6.7, these are the permissions of /proc/sys/fs/binfmt_misc: dr-xr-xr-x 2 root root 0 Aug 9 01:27 binfmt_misc/ So I cannot write in that diectory. And there exists no 'register' file in that directory. When I try to echo something into binfmt_misc/register, I get the error 'bash: binfmt_misc/register: No such file or directory'. So how do I register new binary file handlers? May I also ask why the config was changed to compile binfmt_misc into the kernel, instead of as a module, with this version of the kernel? > May I also ask why the config was changed to compile binfmt_misc into
> the kernel, instead of as a module, with this version of the kernel?
This is a legitimate question, everything else is not our problem.
See if upstream kernel.org has the same problem when using the same
kernel configuration. If so, it is your responsibility to push them
to fix it. Fedora will have any fixes that they apply upstream.
making binfmt handlers modular requires exposing all kinds of internals of the kernel to module, some of those we change in our patches (execshield and 4g/4g basically). It's just a lot simpler by building this one in. I found the solution to my problem. Under this new kernel, I first have to mount the binfmt_misc pseudo filesystem by adding this to /etc/fstab: none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0 After this, the wine init script is able to register a handler for windows executables. Perhaps the kernel install script should add this line to /etc/fstab, or at least inform the user to do so manually. I am not the only one to have been surprised by this change. |