2 Commits
Author SHA1 Message Date
Andrei VaginandgVisor bot 707ac55a05 inet: don't reuse names from the abstract socket namespace map
* If a name is in the map, it means there is a socket associated with it. When
  a socket is destroyed, its name is removed from the map. If we bind another
  socket to the same name, its destroy will trigger the panic:
  panic: expected socket to exist at ... in abstract socket namespace

* We use TryIncRef/DecRef to check a socket, DecRef may destroy the socket but
  it requires to take AbstractSocketNamespace mutex that is already taken.

PiperOrigin-RevId: 574268647
2023-10-17 14:40:18 -07:00
Andrei VaginandgVisor bot f3b0a527c2 inet: allow to create abstract unix sockets in non-root namespaces
PiperOrigin-RevId: 573253619
2023-10-13 10:20:56 -07:00