HasCapability checks if the task has the given capability in the socket owner's user namespace.
(cap linux.Capability, t *kernel.Task)
| 3879 | // HasCapability checks if the task has the given capability in the |
| 3880 | // socket owner's user namespace. |
| 3881 | func (s *sock) HasCapability(cap linux.Capability, t *kernel.Task) bool { |
| 3882 | return t.HasCapabilityIn(cap, s.namespace.UserNamespace()) |
| 3883 | } |
no test coverage detected