Commit Graph
13 Commits
Author SHA1 Message Date
Adam BarthandgVisor bot 73838a90fc Test that readlink for /proc/self/fd/<n> can escape chroot
If the file descriptor references a file outside the chroot, then calling
readlink on that file descriptor's entry in /proc/self/fd/<n> returns the
full path, even though that path does not exist in the chroot.

This tests the opposite case from ChrootTest.ProcMemSelfFdsNoEscapeProcOpen,
which tests what path is returned when the file is inside the chroot.

PiperOrigin-RevId: 531532246
2023-05-12 09:51:51 -07:00
Andrei Vagin 3445db339d Fix all c++ compile time warnings 2023-03-09 19:01:00 -08:00
Lucas ManningandgVisor bot 1fc2547601 Enable access, chroot, chown, and sync tests for FUSE.
PiperOrigin-RevId: 510699649
2023-02-18 13:19:42 -08:00
Jamie LiuandgVisor bot ab1f0d8a5a Fix async-signal-unsafety in chroot test.
PiperOrigin-RevId: 384295543
2021-07-12 12:49:48 -07:00
Fabricio VoznikaandgVisor bot c707ce1839 Remove side effect from test cases
Individual test cases must not rely on being executed in a clean environment.

PiperOrigin-RevId: 354604389
2021-01-29 13:56:17 -08:00
Adin ScannellandgVisor bot 456f4ac3f1 Add notes to relevant tests.
These were out-of-band notes that can help provide additional context
and simplify automated imports.

PiperOrigin-RevId: 293525915
2020-02-05 22:46:35 -08:00
Haibo Xu 7ec3e71e03 Enable build of test/syscall tests on arm64.
Signed-off-by: Haibo Xu <[email protected]>
Change-Id: I277d6c708bbf5c3edd7c3568941cfd01dc122e17
2020-01-17 07:39:57 +00:00
Adin ScannellandgVisor bot 3b8d99f217 Import and structure cleanup.
PiperOrigin-RevId: 281795269
2019-11-21 11:41:30 -08:00
HaiboandgVisor bot eaab6788a0 test/syscall: Remove duplicated gtest/gtest.h.
Signed-off-by: Haibo Xu <[email protected]>
Change-Id: I05a7ec69b98b88931ba4a8adb3e8a7b822006001
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gvisor/pull/1023 from xiaobo55x:syscall_test d44a8b1f827ed4081997af96cd58ba7449e0a9e1
PiperOrigin-RevId: 276740442
2019-10-25 12:40:36 -07:00
Nicolas LacasseandgVisor bot cf51e77d6d Fix suggestions from clang.
PiperOrigin-RevId: 255679603
2019-06-28 15:32:29 -07:00
Michael PrattandShentubot 4d52a55201 Change copyright notice to "The gVisor Authors"
Based on the guidelines at
https://opensource.google.com/docs/releasing/authors/.

1. $ rg -l "Google LLC" | xargs sed -i 's/Google LLC.*/The gVisor Authors./'
2. Manual fixup of "Google Inc" references.
3. Add AUTHORS file. Authors may request to be added to this file.
4. Point netstack AUTHORS to gVisor AUTHORS. Drop CONTRIBUTORS.

Fixes #209

PiperOrigin-RevId: 245823212
Change-Id: I64530b24ad021a7d683137459cafc510f5ee1de9
2019-04-29 14:26:23 -07:00
Jamie LiuandShentubot 290bcb6de9 Require CAP_SYS_CHROOT in ChrootTest.ProcMountsMountinfoNoEscape.
PiperOrigin-RevId: 228949227
Change-Id: I8f47bcd56aab706081218ec7498af8049ccd6d63
2019-01-11 14:48:26 -08:00
Brian GeffonandShentubot d3bc79bc84 Open source system call tests.
PiperOrigin-RevId: 224886231
Change-Id: I0fccb4d994601739d8b16b1d4e6b31f40297fb22
2018-12-10 14:42:34 -08:00