Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp325894ybm; Mon, 20 May 2019 17:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmotFYBm8QZ+zAgG5EIy/NcYdJ6dhOxz1rKo56dh4sDnXR1Bi9eBdidepnzoqOY5Pqupub X-Received: by 2002:aa7:9577:: with SMTP id x23mr83171728pfq.164.1558397602644; Mon, 20 May 2019 17:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558397602; cv=none; d=google.com; s=arc-20160816; b=lRpVtfWubm8SLnnjVzWkoamzDn9fW/ExsNe2hsQuZXKtr/lGEHj3DtIfC9s1Tsz3H4 I+p6G4+jRYTwD9g4IBnY6PLNxLn+Nx9W7JtxsxVJ9Gk18FzXztalYWZg1C/ekNiXlVC3 AWc1I60yOWLkhc/OgY3etsCHka4e+ru8t5hftASyohiyZHsGZ63Fsg0J7MmXzdGztKk5 tYdRECYTclQKctJK++KiarbCp/DcD7nUgub2xCW/Cu5eRmzTUoZhBXjZhq+4OA8KrUFh sPA+WHJPZaTMm3H0pc7dUL3CIrKpxcRit8z09duYDYHwnyabAhmi/jUdVOc+C1WiOYJT so3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=DpDx5mLObSwbAWMMEDfJ85fhA1RaR8esdUmgfV9AnIE=; b=nySsHeVnikhl2sKAGOwewTSgtroV3ElgfKh4BV0/rqzzivEw51Pt+SaoThVfYlQJ9j BG2hQn8VCoLvNv8hVpVno9+Ab5htNSdqdTB1APTE4B8qn11IUn4CytiX8XUPRLbJkjtv IHuPNLUi/S8j3RZSehlixUjsF/TwNS1Ta3u6Eu/XeiDOWFsU2HEMb0hBsnWocIq6xDRA HoZS9aPfo8M0n5T7osgaOqsSlauWlmSGkDat5vXhfs8/+mSOHWch+3Pqfx89LGqjFs+T fakPiMIAphjG77ksoxrxa9j2IC3Qy3fLyT+6Kp83g00g3YalLiiyWhnyuq8PAws1yPUX ByOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si20297556pgd.486.2019.05.20.17.13.07; Mon, 20 May 2019 17:13:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727279AbfEUAMD (ORCPT + 99 others); Mon, 20 May 2019 20:12:03 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:59728 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbfEUAMD (ORCPT ); Mon, 20 May 2019 20:12:03 -0400 Received: from localhost (50-78-161-185-static.hfc.comcastbusiness.net [50.78.161.185]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C25F613F3ABBB; Mon, 20 May 2019 17:12:02 -0700 (PDT) Date: Mon, 20 May 2019 20:12:02 -0400 (EDT) Message-Id: <20190520.201202.368431080157706787.davem@davemloft.net> To: felipe@felipegasper.com Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH v3] net: Add UNIX_DIAG_UID to Netlink UNIX socket diagnostics. From: David Miller In-Reply-To: <20190519013839.20355-1-felipe@felipegasper.com> References: <20190519013839.20355-1-felipe@felipegasper.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 20 May 2019 17:12:03 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Felipe Gasper Date: Sat, 18 May 2019 20:38:39 -0500 > Author: Felipe Gasper > Date: Sat May 18 20:04:40 2019 -0500 > > net: Add UNIX_DIAG_UID to Netlink UNIX socket diagnostics. Please format your patch submission properly. This Author: and Date: should not be here in the commit message. The "net: Add UNIX_DIAG_UID to Netlink UNIX socket diagnostics." should be exclusively in your Subject line. And: > This adds the ability for Netlink to report a socket's UID along with the > other UNIX diagnostic information that is already available. This will > allow diagnostic tools greater insight into which users control which > socket. > > To test this, do the following as a non-root user: > > unshare -U -r bash > nc -l -U user.socket.$$ & > > .. and verify from within that same session that Netlink UNIX socket > diagnostics report the socket's UID as 0. Also verify that Netlink UNIX > socket diagnostics report the socket's UID as the user's UID from an > unprivileged process in a different session. Verify the same from > a root process. > > Signed-off-by: Felipe Gasper This is all unnecessarily indented. I know what you did, you took something like "git show" output and just posted it to the list here. But that's not what you're supposed to do. Thanks.