Bug 1260980 - Add possibility to passthrough devices from config
Summary: Add possibility to passthrough devices from config
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 10:50 UTC by David Caro
Modified: 2016-06-26 23:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-08 11:52:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Caro 2015-09-08 10:50:06 UTC
Description of problem:
I want to allow the processes inside the chroot to access some of the devices that are available out of the chroot, right now there's no easy way to allow that aside from mounting the whole /dev and setting it as unmanaged (bad idea) or manually populating it yourself.

Having a config option like 'passthrough_devices' where you specify a list of devices would be really helpful.

Version-Release number of selected component (if applicable):
mock-1.2.12-1.fc22.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
One possibility is to create hard links for the devices, but that requires the chroot dev and the system dev to be in the same device (maybe creating a temp dir inside the system /dev and mounting it in the chroot?)

Comment 1 Miroslav Suchý 2015-09-08 11:52:20 UTC
While it is probably doable with current chroot, we are in transition to handle the chroot isolation to systemd-nspawn (can be used with --new-chroot option now). And with systemd-nspawn the passthrough of devices is not possible. See:
http://lists.freedesktop.org/archives/systemd-devel/2014-November/024913.html

Comment 2 David Caro 2015-09-08 12:02:42 UTC
Thanks for the update :/

We are intensively and extensively using mock for our projects, that change to systemd-nspawn might break some things, what is the roadmap?


Note You need to log in before you can comment on or make changes to this bug.