linux-sandbox didn't remount sys, leads /sys/class/net not sync with network namespace #23273
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Local-Exec
Issues and PRs for the Execution (Local) team
type: bug
Description of the bug:
when using linux-sandbox, it didn't remount /sys, leave /sys/class/net still being host network devices, not ones inside the network namespace. remount /sys (similar to /proc) resolve it. I have a branch comicfans@891b41a to address it, shall I create PR for this?
Which category does this issue belong to?
Local Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
run command
ip link show will output correct devices in network namespace,
but ls command will show host network devices
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?I'm testing on master dacb794
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.add test (without requires-network tag, then linux-sandbox will create network namespace for it)
and ls /sys/class/net in test
What's the output of
git remote get-url origin; git rev-parse HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
https://stackoverflow.com/questions/15626088/tap-interfaces-and-dev-net-tun-device-using-ip-tuntap-command
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: