diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-14 19:30:23 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-14 19:30:23 +0000 |
commit | 43af6825a60fb340835739f85975490d480874b9 (patch) | |
tree | 9e1d39e69609f4748e87c43cf705b918b2969cfb /pkg/sentry/kernel | |
parent | 3ebcbf06d46dd9becdc1deecb2f1c8d4abb90258 (diff) | |
parent | 9c7ff24fe6160f5eaa7f0018cc88d253abc7beae (diff) |
Merge release-20210607.0-41-g9c7ff24fe (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/task.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go index b21a6ad57..2e3b4488a 100644 --- a/pkg/sentry/kernel/task.go +++ b/pkg/sentry/kernel/task.go @@ -852,15 +852,13 @@ func (t *Task) SetOOMScoreAdj(adj int32) error { return nil } -// UID returns t's uid. -// TODO(gvisor.dev/issue/170): This method is not namespaced yet. -func (t *Task) UID() uint32 { +// KUID returns t's kuid. +func (t *Task) KUID() uint32 { return uint32(t.Credentials().EffectiveKUID) } -// GID returns t's gid. -// TODO(gvisor.dev/issue/170): This method is not namespaced yet. -func (t *Task) GID() uint32 { +// KGID returns t's kgid. +func (t *Task) KGID() uint32 { return uint32(t.Credentials().EffectiveKGID) } |