aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/tools/network-tools.c
Commit message (Collapse)AuthorAge
* Fix for SIOCGIFINDEX undefined on Mac ↵Gravatar Dave MacLachlan2015-10-19
| | | | | | | | | | | | (https://github.com/bazelbuild/bazel/issues/510) This compiles with the assumption that all we were using SIOCGIFINDEX for was to verify that the name was valid. I think the code as written before was actually wrong as the index value, and the flags value for a ifreq structure actually shared memory, so we were potentially setting flags that we didn't want to set based on the actual index returned. -- MOS_MIGRATED_REVID=105619856
* Introduce two new options to Linux sandbox wrapper:Gravatar Ming Zhao2015-10-08
* -n: Create a new network namespace with only loopback interface. * -r: set the uid/gid inside the sandbox to be root (instead of nobody) so that setuid programs like ping can still run when needed. -- Change-Id: I8ab434e47e0f6933ee9de02e135c8daec39fe73f Reviewed-on: https://bazel-review.googlesource.com/#/c/2101/ MOS_MIGRATED_REVID=104858163