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
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
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
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
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
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
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
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