[ 
https://issues.apache.org/jira/browse/MESOS-8792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461446#comment-16461446
 ] 

James Peach commented on MESOS-8792:
------------------------------------

I have some preliminary patches for this and have experimented a bit. The major 
conceptual problem here is that if we are creating the device nodes at the time 
when we construct the chroot, the process is already running in cgroups 
(specifically the devices cgroup). This means that the devices cgroup must 
allow the {{mknod}} permission; you can't just specify read+write devices.

> Automatically create whitelisted devices.
> -----------------------------------------
>
>                 Key: MESOS-8792
>                 URL: https://issues.apache.org/jira/browse/MESOS-8792
>             Project: Mesos
>          Issue Type: Improvement
>          Components: cgroups, containerization
>            Reporter: James Peach
>            Assignee: James Peach
>            Priority: Major
>
> When the operator configures the {{\-\-allowed_devices}} agent flag, the 
> devices cgroup is configured but the task still needs to actually create the 
> device node. This is awkward because the task might not have enough 
> capabilities to {{mknod}} and even if we wanted to grant the capabilities, 
> the application may need to be modified to make the right system calls.
> We should enhance the isolator and containerizer to automatically create 
> device nodes that have been whitelisted.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to