gvisor/pkg/sentry
Michael Pratt 6b24f7ab08 Format FDs in strace logs
Normal files display their path in the current mount namespace:

I0410 10:57:54.964196  216336 x:0] [   1] ls X read(0x3 /proc/filesystems, 0x55cee3bdb2c0 "nodev\t9p\nnodev\tdevpts \nnodev\tdevtmpfs\nnodev\tproc\nnodev\tramdiskfs\nnodev\tsysfs\nnodev\ttmpfs\n", 0x1000) = 0x58 (24.462?s)

AT_FDCWD includes the CWD:

I0411 12:58:48.278427    1526 x:0] [   1] stat_test E newfstatat(AT_FDCWD /home/prattmic, 0x55ea719b564e /proc/self, 0x7ef5cefc2be8, 0x0)

Sockets (and other non-vfs files) display an inode number (like
/proc/PID/fd):

I0410 10:54:38.909123  207684 x:0] [   1] nc E bind(0x3 socket:[1], 0x55b5a1652040 {Family: AF_INET, Addr: , Port: 8080}, 0x10)

I also fixed a few syscall args that should be Path.

PiperOrigin-RevId: 243169025
Change-Id: Ic7dda6a82ae27062fe2a4a371557acfd6a21fa2a
2019-04-11 16:48:39 -07:00
..
arch Internal change 2019-04-10 18:00:18 -07:00
context Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
control
device
fs Use open fids when fstat()ing gofer files. 2019-04-11 00:43:04 -07:00
hostcpu Remove license comments 2019-01-31 11:12:53 -08:00
inet Remove license comments 2019-01-31 11:12:53 -08:00
kernel
limits
loader Use open fids when fstat()ing gofer files. 2019-04-11 00:43:04 -07:00
memmap
memutil Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
mm Internal change 2019-04-10 18:00:18 -07:00
pgalloc
platform
safemem Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
sighandling Remove license comments 2019-01-31 11:12:53 -08:00
socket Use open fids when fstat()ing gofer files. 2019-04-11 00:43:04 -07:00
state Treat ENOSPC as a state-file error during save. 2019-03-29 12:26:25 -07:00
strace Format FDs in strace logs 2019-04-11 16:48:39 -07:00
syscalls Use open fids when fstat()ing gofer files. 2019-04-11 00:43:04 -07:00
time Move package sync to third_party 2019-01-31 17:49:14 -08:00
unimpl Remove license comments 2019-01-31 11:12:53 -08:00
uniqueid
usage
usermem Convert []byte to string without copying in usermem.CopyStringIn. 2019-03-27 10:46:28 -07:00
watchdog Remove license comments 2019-01-31 11:12:53 -08:00
BUILD