google / google/gvisor

UID, GID, and privilege control in tests

Open
#6,118 1 comment 0 reactions 0 assignees View on GitHub
area: tests type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

It's currently difficult-to-impossible to write tests that involve switching UID/GID and deal with changing privileges. This has come up in #6115, and is the reason behind much of the code in the [setgid tests](https://github.com/google/gvisor/blob/fcad6f91a3f292b6b76be10f03baf05ee5245d3d/test/syscalls/linux/setgid.cc). Test coverage would be better if we could control the more system state (test process UID/GID, other UID/GIDs present) of tests before they launch.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.