31 Dec, 2011

3 commits


17 Dec, 2011

6 commits

  • Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • When establishing a unix connection on stream sockets the
    server end receives an skb with socket in its receive queue.

    Report who is waiting for these ends to be accepted for
    listening sockets via NLA.

    There's a lokcing issue with this -- the unix sk state lock is
    required to access the peer, and it is taken under the listening
    sk's queue lock. Strictly speaking the queue lock should be taken
    inside the state lock, but since in this case these two sockets
    are different it shouldn't lead to deadlock.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • Report the peer socket inode ID as NLA. With this it's finally
    possible to find out the other end of an interesting unix connection.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • Actually, the socket path if it's not anonymous doesn't give
    a clue to which file the socket is bound to. Even if the path
    is absolute, it can be unlinked and then new socket can be
    bound to it.

    With this NLA it's possible to check which file a particular
    socket is really bound to.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • Report the sun_path when requested as NLA. With leading '\0' if
    present but without the leading AF_UNIX bits.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • Includes basic module_init/_exit functionality, dump/get_exact stubs
    and declares the basic API structures for request and response.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov