MCPcopy
hub / github.com/google/gvisor / UserNamespace

Method UserNamespace

pkg/sentry/kernel/task_identity.go:32–34  ·  view source on GitHub ↗

UserNamespace returns the user namespace associated with the task.

()

Source from the content-addressed store, hash-verified

30
31// UserNamespace returns the user namespace associated with the task.
32func (t *Task) UserNamespace() *auth.UserNamespace {
33 return t.Credentials().UserNamespace
34}
35
36// HasCapabilityIn checks if the task has capability cp in user namespace ns.
37func (t *Task) HasCapabilityIn(cp linux.Capability, ns *auth.UserNamespace) bool {

Callers 8

signalStopMethod · 0.95
PIDFDSendSignalMethod · 0.95
ptraceTrapLockedMethod · 0.95

Calls 1

CredentialsMethod · 0.95

Tested by

no test coverage detected