GitHub PushEvent at 2014-09-09 13:22:40
Repository: kyua
Actor: jmmv
Payload: {"shas":[["00a237939d50801c24ebd16f597c25d42aa1856b","8197936e0ee1e0b1666af94eb3119cebebdf7915@google.com","Run tests as root with unprivileged_user set\n\nAdd a new configuration in the Travis CI runs to ensure that running our\nown tests as root works properly when unprivileged_user is set.","Julio Merino",false],["2ab460b54ff6e676122a4d29da90dc1d982989e4","8197936e0ee1e0b1666af94eb3119cebebdf7915@google.com","Properly drop group privileges\n\nAs a side-effect, this fixes testers/run_test:fork_wait__unprivileged_group\nwhich was properly capturing this failure.\n\nFixes #109.","Julio Merino",false],["cb6ae5735bfe612a8f46f9c710f094065be3e2b2","8197936e0ee1e0b1666af94eb3119cebebdf7915@google.com","Fix opening of log files with unprivileged_user\n\nWhen running with unprivileged_user set, opening log files using the\n/dev/stdout and /dev/stderr names fails because these special files\nare not owned by the user the privileges were dropped to.\n\nTo resolve this, apply the same indirection we have in the CLI when\nopening output files for reports: capture the /dev/stdout and\n/dev/stderr special names and redirect them to the already-open\nstd::cout and std::cerr streams.\n\nFixes a bunch of test failures when running the Kyua test suite as\nroot with unprivileged_user is set.","Julio Merino",false],["747aa0f31f4e0c393ea5ff4c310ed3692b862838","8197936e0ee1e0b1666af94eb3119cebebdf7915@google.com","Fix test broken by the TMPDIR change\n\nThe change in 6ea3e39a100ca3ca2f8c36ea30e6c8e60a50ef70 to make TMPDIR\npoint to the work directory of the test case broke the\nrun_test_case__atf__required_user__atf__unprivileged__atf__drop test\nin engine/test_case_test.\n\nThe breakage came because the unprivileged test case spawned by this\ntest case had its work directory within the work directory of the\ncontainer test case, which in turn had its work directory set to\nroot with 0700 permissions.  This prevented the unprivileged test\ncase from creating its results file as absolute paths could not be\nresolved.\n\nFix this by weakening the permissions of the first work directory.","Julio Merino",false],["75462f858e9263a4696b14bd62b3aa5b03f5883f","8197936e0ee1e0b1666af94eb3119cebebdf7915@google.com","Merge branch 'unprivileged-user-fixes'\n\nFix privilege dropping functionality and a bunch of broken tests when\nrunning the Kyua test suite as root with unprivileged_user properly\nset.","Julio Merino",true]],"size":5,"ref":"refs/heads/master","head":"75462f858e9263a4696b14bd62b3aa5b03f5883f"}