Skip to content

Possible to pass devices into a rootless container and allow raw access? #24544

Answered by nalind
cyqsimon asked this question in Q&A
Discussion options

You must be logged in to vote

Unprivileged users normally can't map UID 0 from outside of namespaces they create into their own, so items owned by that user appear as the overflow ID. There's a bit more about this in the "Unmapped user and group IDs" section in user_namespaces(7). Capabilities like CAP_SYS_RAWIO only "work" in the initial namespace, as noted in the "Effect of capabilities within a user namespace" section.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cyqsimon
Comment options

@nalind
Comment options

Answer selected by cyqsimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants