gvisor/runsc/cmd
Fabricio Voznika f51e0486d4 Fix stdios ownership
Set stdio ownership based on the container's user to ensure the
user can open/read/write to/from stdios.

1. stdios in the host are changed to have the owner be the same
uid/gid of the process running the sandbox. This ensures that the
sandbox has full control over it.
2. stdios owner owner inside the sandbox is changed to match the
container's user to give access inside the container and make it
behave the same as runc.

Fixes #6180

PiperOrigin-RevId: 384347009
2021-07-12 16:55:40 -07:00
..
BUILD Internal change 2021-04-16 14:28:23 -07:00
boot.go Replace kernel.ExitStatus with linux.WaitStatus. 2021-07-08 13:39:15 -07:00
capability.go Update canonical repository. 2019-06-13 16:50:15 -07:00
capability_test.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
checkpoint.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
chroot.go clarify safemount behavior 2021-07-08 17:56:11 -07:00
cmd.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
create.go Let flags be overriden from OCI annotations 2020-09-01 11:12:19 -07:00
debug.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
delete.go Add sandbox ID to state file name 2020-12-17 10:52:44 -08:00
delete_test.go Move boot.Config to its own package 2020-08-19 18:37:42 -07:00
do.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
error.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
events.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
exec.go Fix stdios ownership 2021-07-12 16:55:40 -07:00
exec_test.go Prevent CAP_NET_RAW from appearing in exec 2019-10-01 11:49:49 -07:00
gofer.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
gofer_test.go Switch uses of os.Getenv that check for empty string to os.LookupEnv. 2021-01-13 15:15:20 -08:00
help.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
install.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
kill.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
list.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
mitigate.go Merge pull request #5764 from zhlhahaha:2126-2 2021-05-10 12:59:03 -07:00
mitigate_extras.go Internal change 2021-04-16 14:28:23 -07:00
mitigate_test.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
path.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
pause.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
ps.go Add sandbox ID to state file name 2020-12-17 10:52:44 -08:00
restore.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
resume.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
run.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
spec.go Add args and netns flag to runsc spec 2020-07-09 15:26:52 -07:00
start.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
state.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
statefile.go Support for saving pointers to fields in the state package. 2020-06-23 23:34:06 -07:00
symbolize.go Allow runsc to generate coverage reports. 2021-04-16 17:56:16 -07:00
syscalls.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
verity_prepare.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
wait.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00