UserNamespace returns the user namespace associated with the task.
()
| 30 | |
| 31 | // UserNamespace returns the user namespace associated with the task. |
| 32 | func (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. |
| 37 | func (t *Task) HasCapabilityIn(cp linux.Capability, ns *auth.UserNamespace) bool { |
no test coverage detected