[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200822.123650.1479943925913245500.davem@davemloft.net>
Date: Sat, 22 Aug 2020 12:36:50 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: kalou@....net
Cc: linux-kernel@...r.kernel.org, linux-api@...r.kernel.org,
netdev@...r.kernel.org, kuba@...nel.org, akpm@...ux-foundation.org,
adobriyan@...il.com, viro@...iv.linux.org.uk
Subject: Re: [PATCH v2 2/2] net: socket: implement SO_DESCRIPTION
From: Pascal Bouchareine <kalou@....net>
Date: Fri, 21 Aug 2020 20:28:27 -0700
> This command attaches the zero terminated string in optval to the
> socket for troubleshooting purposes. The free string is displayed in the
> process fdinfo file for that fd (/proc/<pid>/fdinfo/<fd>).
>
> One intended usage is to allow processes to self-document sockets
> for netstat and friends to report
>
> We ignore optlen and constrain the string to a static max size
>
> Signed-off-by: Pascal Bouchareine <kalou@....net>
This change is really a non-starter unless the information gets
published somewhere where people actually look at dumped sockets, and
that's inet_diag and friends.
Powered by blists - more mailing lists