summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2018-07-19 15:48:08 -0700
committerShentubot <shentubot@google.com>2018-07-19 15:48:56 -0700
commit8b8aad91d581ee5f600f5ec0b7fb407b36d07db1 (patch)
tree30865cd066380339cc4087bd622f31df86965c08 /pkg/sentry/syscalls/linux
parentbe431d0934b8d33dcb1909527e0f9ed7eb504b6f (diff)
kernel: mutations on creds now require a copy.
PiperOrigin-RevId: 205315612 Change-Id: I9a0a1e32c8abfb7467a38743b82449cc92830316
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r--pkg/sentry/syscalls/linux/sys_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_file.go b/pkg/sentry/syscalls/linux/sys_file.go
index 490649f87..66e6fd9d4 100644
--- a/pkg/sentry/syscalls/linux/sys_file.go
+++ b/pkg/sentry/syscalls/linux/sys_file.go
@@ -415,14 +415,14 @@ func Creat(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Syscall
// accessContext should only be used for access(2).
type accessContext struct {
context.Context
- creds auth.Credentials
+ creds *auth.Credentials
}
// Value implements context.Context.
func (ac accessContext) Value(key interface{}) interface{} {
switch key {
case auth.CtxCredentials:
- return &ac.creds
+ return ac.creds
default:
return ac.Context.Value(key)
}