Skip to content

Devices are mounted with wrong uid/gid #1742

@ynirk

Description

@ynirk

When creating a container with a device attached, the device does not inherit the correct uid/gid since version 1.0.0-rc4.
The test is based on a config.json generated by

docker run -it --device /dev/snd alpine

With runc version 1.0.0-rc4 :

$ sudo runc run test-v1.0.0-rc4

/ # ls -als /dev/snd
     0 crw-rw----    1 root     root      116,   2 Feb 26 10:35 controlC0
     0 crw-rw----    1 root     root      116,  10 Feb 26 10:35 hwC0D0

With runc version 1.0.0-rc3:

$ sudo runc run test-v1.0.0-rc3

/ # ls -als /dev/snd
     0 crw-rw----    1 root     986       116,   2 Feb 26 10:38 controlC0
     0 crw-rw----    1 root     986       116,  10 Feb 26 10:38 hwC0D0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions