Ghanan Gowripalan
aa26981700
Move socket_test_util to //test/util
...
...and rename the library to socket_util.
PiperOrigin-RevId: 386348306
2021-07-22 16:37:15 -07:00
Jamie Liu
fbd4ccf333
Fix async-signal-unsafety in socket test.
...
PiperOrigin-RevId: 383689096
2021-07-08 12:26:56 -07:00
Dean Deng
81ff6bd921
Use size_t instead of C integer types.
...
PiperOrigin-RevId: 368919557
2021-04-16 14:33:34 -07:00
Adin Scannell
e83cc06f1b
Remove _NoRandomSave tests.
...
We do not currently run random save tests.
PiperOrigin-RevId: 368309921
2021-04-13 15:42:41 -07:00
Dean Deng
96bd076e8a
Initialize timestamps for gofer synthetic children.
...
Contrary to the comment on the socket test, the failure was due to an issue
with goferfs rather than kernfs.
PiperOrigin-RevId: 353918021
2021-01-26 12:02:05 -08:00
Dean Deng
abdff88748
Do not send SCM Rights more than once when message is truncated.
...
If data is sent over a stream socket that will not fit all at once, it will
be sent over multiple packets. SCM Rights should only be sent with the first
packet (see net/unix/af_unix.c:unix_stream_sendmsg in Linux).
Reported-by: syzbot+aa26482e9c4887aff259@syzkaller.appspotmail.com
PiperOrigin-RevId: 353886442
2021-01-26 09:49:31 -08:00
Kevin Krakauer
5259b90dac
Resolve compiler warnings
...
The buildkite syscall tests start with a lot of C++ warnings. This
cleans that up a little.
2020-12-23 16:49:01 -08:00
Rahat Mahmood
b4820e5986
Implement StatFS for various VFS2 filesystems.
...
This mainly involved enabling kernfs' client filesystems to provide a
StatFS implementation.
Fixes #3411 , #3515 .
PiperOrigin-RevId: 329009864
2020-08-28 14:31:11 -07:00
Rahat Mahmood
f23f62c2c2
Correctly set the test VFS environment variable.
...
Also fix test bugs uncovered now that they aren't silently skipped on
VFS2.
Updates #1487 .
PiperOrigin-RevId: 316415807
2020-06-15 01:09:38 -07:00
Dean Deng
ba2bf9fc13
Skip socket tests only if running on vfs1.
...
PiperOrigin-RevId: 312763249
2020-05-21 16:32:48 -07:00
Nicolas Lacasse
db655f020e
Resolve remaining TODOs for tmpfs.
...
Closes #1197
PiperOrigin-RevId: 311438223
2020-05-13 17:36:37 -07:00
Dean Deng
ce19497c1c
Fix Unix socket permissions.
...
Enforce write permission checks in BoundEndpointAt, which corresponds to the
permission checks in Linux (net/unix/af_unix.c:unix_find_other).
Also, create bound socket files with the correct permissions in VFS2.
Fixes #2324 .
PiperOrigin-RevId: 308949084
2020-04-28 20:13:01 -07:00
Michael Pratt
61e40819d9
Sanity test that open(2) on a UDS fails
...
Spoiler alert: it doesn't.
PiperOrigin-RevId: 272513529
2019-10-02 14:01:49 -07:00
gVisor bot
baf4d8aaca
Internal change.
...
PiperOrigin-RevId: 265535438
2019-08-26 14:07:17 -07:00
Andrei Vagin
4b9cb38157
gvisor: socket() returns EPROTONOSUPPORT if protocol is not supported
...
PiperOrigin-RevId: 250426407
2019-05-30 12:06:15 -07:00