Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401875 - sys-apps/openrc enable binfmt_misc procfs support for OpenVZ
Summary: sys-apps/openrc enable binfmt_misc procfs support for OpenVZ
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-02-02 04:58 UTC by Daniel Robbins
Modified: 2012-02-17 17:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
binfmt-openvz.patch (binfmt-openvz.patch,1.92 KB, text/plain)
2012-02-14 22:59 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Robbins 2012-02-02 04:58:03 UTC
Modern OpenVZ kernels allow containers to use binfmt_misc if it is listed in /proc/filesystems. Therefore, procfs should be initialized within an OpenVZ container when it boots. usbcore and /proc/bus/usb should still not be initialized. Same with SELinux.

Suggested fix: remove -openvz from procfs, but only run the binfmt_misc initialization if we happen to be in an openvz container.


Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2012-02-14 22:59:42 UTC
Created attachment 301975 [details]
binfmt-openvz.patch

Daniel,

does this patch fix your issue?

Thanks,

William
Comment 2 Daniel Robbins 2012-02-14 23:07:17 UTC
This looks like it will work. Have not personally tested it.
Comment 3 William Hubbs gentoo-dev 2012-02-14 23:22:09 UTC
I do not have a way to test since I do not run OPENVZ.

Do you want to test before I commit?
Comment 4 William Hubbs gentoo-dev 2012-02-17 17:46:46 UTC
This has been added in commit a5509d6.

Thanks for the report.