gvisor/pkg
Jamie Liu dbc507dc5c Add equivalents to FMODE_PREAD/PWRITE to VFS2.
This is mostly required for PipeTest_OffsetCalls.

The options are DenyPRead/PWrite rather than AllowPRead/PWrite since, in Linux
terms, fs/open.c:do_dentry_open sets FMODE_PREAD|FMODE_PWRITE unconditionally
(although it allows filesystem implementations of open to unset these flags),
so they're set for most FDs; it's usually FDs created outside of open(2) that
don't get them, e.g.:

- Syscall-created pipes (fs/pipe.c:create_pipe_files =>
  fs/file_table.c:alloc_file_pseudo)

- Epoll instances (fs/eventpoll.c:do_epoll_create =>
  fs/anon_inodes.c:anon_inode_getfile => alloc_file_pseudo)

- Sockets (net/socket.c:sock_alloc_file => alloc_file_pseudo)

This CL adds the flags to epoll instances; a subsequent CL reworks the VFS2
implementation of pipe FDs to be filesystem-independent and adds the flags
there, and sockets aren't implemented yet.

Updates #1035

PiperOrigin-RevId: 304506434
2020-04-02 16:58:24 -07:00
..
abi Support owner matching for iptables. 2020-03-26 12:21:24 -07:00
amutex Standardize on tools directory. 2020-01-27 12:21:00 -08:00
atomicbitops Automated rollback of changelist 303799678 2020-04-01 11:06:26 -07:00
binary Move Align{Up,Down} into binary package. 2020-02-11 11:09:31 -08:00
bits Misc fixes to make stat_test pass (almost) 2020-03-25 14:59:15 -07:00
bpf Standardize on tools directory. 2020-01-27 12:21:00 -08:00
buffer Clean-up buffer implementation. 2020-03-11 19:52:14 -07:00
compressio Standardize on tools directory. 2020-01-27 12:21:00 -08:00
context Update package locations. 2020-01-27 15:31:32 -08:00
control Standardize on tools directory. 2020-01-27 12:21:00 -08:00
cpuid Fix 386 build tags 2020-04-01 10:00:03 -07:00
eventchannel Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fd Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fdchannel Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fdnotifier Standardize on tools directory. 2020-01-27 12:21:00 -08:00
flipcall Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fspath Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
gate Deflake third_party/gvisor/pkg/gate/gate_test 2020-03-18 17:42:29 -07:00
gohacks Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
goid Standardize on tools directory. 2020-01-27 12:21:00 -08:00
ilist Prevent memory leaks in ilist 2020-03-06 12:31:43 -08:00
linewriter Standardize on tools directory. 2020-01-27 12:21:00 -08:00
log Fix nested logging. 2020-02-25 12:25:38 -08:00
memutil Standardize on tools directory. 2020-01-27 12:21:00 -08:00
metric Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
p9 Un-export p9 message encode/decode functions. 2020-02-14 12:23:10 -08:00
pool Move p9.pool to a separate package 2020-02-06 10:07:45 -08:00
procid Standardize on tools directory. 2020-01-27 12:21:00 -08:00
rand Actually wrap rand.Reader in bufio.Reader. 2020-03-20 17:02:13 -07:00
refs Standardize on tools directory. 2020-01-27 12:21:00 -08:00
safecopy Automated rollback of changelist 303799678 2020-04-01 11:06:26 -07:00
safemem Ensure that safemem.BlockSeqOf(safemem.Block{}) produces an empty BlockSeq. 2020-03-04 14:30:27 -08:00
seccomp tests: Don't print log messages on stdout 2020-03-04 16:16:35 -08:00
secio Standardize on tools directory. 2020-01-27 12:21:00 -08:00
segment Standardize on tools directory. 2020-01-27 12:21:00 -08:00
sentry Add equivalents to FMODE_PREAD/PWRITE to VFS2. 2020-04-02 16:58:24 -07:00
sleep Simplify atomic operations 2020-02-11 20:37:01 -08:00
state Standardize on tools directory. 2020-01-27 12:21:00 -08:00
sync Rename files in //pkg/sync to better reflect what they contain. 2020-04-02 11:57:06 -07:00
syncevent Add //pkg/syncevent. 2020-02-18 15:18:48 -08:00
syserr Standardize on tools directory. 2020-01-27 12:21:00 -08:00
syserror Add BoundEndpointAt filesystem operation. 2020-03-26 21:52:24 -07:00
tcpip Increment NDP message RX stats before validation 2020-04-02 15:59:48 -07:00
tmutex Standardize on tools directory. 2020-01-27 12:21:00 -08:00
unet Standardize on tools directory. 2020-01-27 12:21:00 -08:00
urpc Standardize on tools directory. 2020-01-27 12:21:00 -08:00
usermem Fix 386 build tags 2020-04-01 10:00:03 -07:00
waiter Standardize on tools directory. 2020-01-27 12:21:00 -08:00