Skip to content

Conversation

@kolyshkin
Copy link
Collaborator

For some reason, access to /dev/net/tun was enabled by the default
built-in ruleset in runc since its very inception.

Obviously, a container should not have access to tun/tap device, unless
it is explicitly specified in configuration.

Now, removing this might create a compatibility issue, but I see no
other choice.

Similar PR for runc: opencontainers/runc#3468
(I guess it makes sense to wait until that one is merged).

For some reason, access to /dev/net/tun was enabled by the default
built-in ruleset in runc since its very inception.

Obviously, a container should not have access to tun/tap device, unless
it is explicitly specified in configuration.

Now, removing this might create a compatibility issue, but I see no
other choice.

Signed-off-by: Kir Kolyshkin <[email protected]>
@flouthoc
Copy link
Collaborator

flouthoc commented May 6, 2022

LGTM

@kolyshkin @giuseppe I am just curious why was reported BZ only reproduceable on runc and not crun (PS: just reading the reported BZ did not reproduce manually) if both of them allow tun/tap by default.

@flouthoc flouthoc requested a review from giuseppe May 6, 2022 08:49
@giuseppe
Copy link
Member

giuseppe commented May 6, 2022

We do not use systemd to configure the cgroup

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@giuseppe
Copy link
Member

giuseppe commented May 8, 2022

@kolyshkin are you able to merge on this repository? If so, please feel free to merge when you wish

@giuseppe
Copy link
Member

I am merging since the runc PR was already merged

@giuseppe giuseppe merged commit d15fedb into containers:main May 11, 2022
@kolyshkin
Copy link
Collaborator Author

@kolyshkin are you able to merge on this repository? If so, please feel free to merge when you wish

Nope, it says Only those with write access to this repository can merge pull requests.

@kolyshkin kolyshkin deleted the no-tun branch May 19, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants