Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1184460pxa; Sat, 22 Aug 2020 14:46:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxNh/KBjq7Lzj4uMhIRaHB25R7kOJDDWvF74ZphhBpwSUpEoItmhyrvA75KXoZkK8TRjBO X-Received: by 2002:a17:906:684b:: with SMTP id a11mr297624ejs.424.1598132803763; Sat, 22 Aug 2020 14:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598132803; cv=none; d=google.com; s=arc-20160816; b=B8OeU614WTCcYVmwz1q2dR+1sFVr73l8cJ9vq0k75TTm2coT6HHZuUoLt+ajZxta6K 89E4vqGC8Clh2lOc2dpvLHDu3hKwYJBbAw9h2YEeoiCWgzn+BVFy8orGw9BMEUxwAVOc mFOC5lSyswQzMBK0wpG4wtL581Qkjn25GduwbYRl+3to/YXGG45L4DQ5wvXzLVScsVbv HyGV5orfu41I8C0SF2HoVph66PTUyVn1RKG8HF1hsNaups/EB6tKdsJSVQPhl+oDJYSv 1tLL+K/9LfOEMCpyhv/hwV6hqnE0qTX3EPS1ojI7t1NNc1R1iVrBW/icXw4IuBBqjjdV JJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=clh+fL1VRaAXvS7YPj75sxOdd6h5p+Cc2IiViY3r6sw=; b=OQFaKXJS+s9TWRKXUDhbBqsYwQAfV2J3dlt/nZymuuVxLYz0CZeXmc6X/QkDcpOCK5 zmFWles0+HMsxptY2wGW4rsGUZD29qpSR0dSP9TTR3zgcggN+xb95ceWVjFLtneM1e/U 0EgWBaXFRjDiBSpAGat8LshJGM53qWe/Hb2RoYHmSRiq40r6w92Vo8kjoPqenyoocpXU buAUWhK7KBPaFxmH9lZ6NlTWPrPffV5ZpVH6M2ci/WxpOJoxZQSGSaMn+HKG90EhgndO oooIiz5GBH7wRWHczkg9qjTc8eEihLJ9O3tjkmgGyNWzRtU+2t8TDZJ7SDe9PH9K3xMx eu5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=o9F59WuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si3897191edr.287.2020.08.22.14.46.04; Sat, 22 Aug 2020 14:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=o9F59WuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbgHVUxT (ORCPT + 99 others); Sat, 22 Aug 2020 16:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbgHVUxQ (ORCPT ); Sat, 22 Aug 2020 16:53:16 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 410A7C061574 for ; Sat, 22 Aug 2020 13:53:16 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id t14so4889095wmi.3 for ; Sat, 22 Aug 2020 13:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tfz-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=clh+fL1VRaAXvS7YPj75sxOdd6h5p+Cc2IiViY3r6sw=; b=o9F59WuZdNDmx5QsBTy7KpMnsvdroC0zSVfzYTHIzall8m0Ei9+MIncUySVYglsOOw ZURRs+MstyOjREksAjD6v9W/KF2mgN+EXOVtrRP1GT4aqHo5z+YpQtzdnlHTZVDG5sIP qThvmWqpuPpMY3Czodue0yUYpbaIj52FVGaI/PRY4eKq9JJZv5zXHKP0mklc+R/cMakU iNLskVDEPxC6whnJb4CZ0wDh67aNsDSKbQhDbiNyzk+syvqX/TbL0WV/8mZKe1EbnB7A 4UanKTPVZ//IjNn+K+8hxbwVuoPnOvk1n+dG+o3Jh0V8zm8yzkA/5D8cDn2mTMZTPkwq w5yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=clh+fL1VRaAXvS7YPj75sxOdd6h5p+Cc2IiViY3r6sw=; b=UDak9uPktsor2hYApiw9ECcowUO1YGKphAqh+3lKlvQWxpCZ5wa5E+VRiHgq+B/kyS XdfiLk1Xmj7uWpgjosRj1/Tilxa/gmp+ub8y0N34hWNNRMwX6ECYyDvGdxhZtbYmTgYc wQcBY1KlY+ynBMaVVbEiBnMng8pX7rgvVmSt2Cxh/aC/+IwkkSSqUUPNtJdLedBTbF3s tO4B94EJgwWQ895Lf96jsRXdCVMe9sOQyOr0/YbsP/ugix3f9VlYi/7gCjQtaRy22nVS S6G6DghahNhEKok5jPQk5uh13Ah/lBxXhPvMZ/fvHQjpK7N7QGnpq44+mApSKzCBm5Qb cP/w== X-Gm-Message-State: AOAM531Oyx56Ah58ftuUftBtAI+xNUlqIfcBfKwQgfCUclnUsehHvNst JN9vYp3xCfJNh54/dB06DCMe7ELXL4Fhy9Rl4u4E3A== X-Received: by 2002:a7b:c308:: with SMTP id k8mr9402961wmj.90.1598129594749; Sat, 22 Aug 2020 13:53:14 -0700 (PDT) MIME-Version: 1.0 References: <20200815182344.7469-1-kalou@tfz.net> <20200822032827.6386-1-kalou@tfz.net> <20200822032827.6386-2-kalou@tfz.net> <20200822.123650.1479943925913245500.davem@davemloft.net> In-Reply-To: From: Pascal Bouchareine Date: Sat, 22 Aug 2020 13:53:03 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] net: socket: implement SO_DESCRIPTION To: David Miller Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, Jakub Kicinski , Andrew Morton , Alexey Dobriyan , Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 22, 2020 at 1:19 PM Pascal Bouchareine wrote: > > On Sat, Aug 22, 2020 at 12:59 PM Pascal Bouchareine wrote: > > > Would it make sense to also make UDIAG_SHOW_NAME use sk_description? > > (And keep the existing change - setsockopt + show_fd_info via > > /proc/.../fdinfo/..) > > > Ah,very wrong example - to be more precise, I suppose that'd be adding > a couple idiag_ext for sk_description and pid if possible instead About the pid part - On top of multiple pids to scan for a given socket, there's also the security provided by /proc - I'm not sure what inet_diag does for that So maybe users calling it will need to scan /proc for a long time anyway... Or is that doable?