Received: by 10.192.165.148 with SMTP id m20csp301425imm; Fri, 4 May 2018 10:32:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXpU+QBL/wNPyDttBagW0h58gr3aVsfFnes/RNAgVVG7NTplSxgdEcax+xNgtnwXLViuJL X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr7573091plp.10.1525455122057; Fri, 04 May 2018 10:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525455121; cv=none; d=google.com; s=arc-20160816; b=ya2KjQn2xTxHFeicnEn2v5JIcT5a4iuC6DmhB1kiSf4wLOtHQEzSfdHHBUemZR/IG4 jIOTbesatGZ5hexlQND/x46I5IzXcyyXlgMzG8z73iAQTY7DPf4ak/+JeUIVJFdDTow4 +JZNKu2KK7UZuUnBSKjrrrFHEMfkdydwoXb6ok23an788TbnaisShQmTI+zjUMTJ43t5 pk3MSL7/XiIRSl8pmv+In3skQ/bmbBS9sY7RtFEj+tQf1siRiqko2Ynw0v2mMNm8vcw/ XErdchXixkNR0UWrK4d0Ftg2Xd3w0kdSSLlHfOrIcXAUokWmUQS7/zwRnyDlIWd60DNr TatQ== 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 :arc-authentication-results; bh=RSnAjlkMDBr3Fag+JNZ1vKrgdF6uT1zslV5BT5AKdRE=; b=HhMsGCI2VcI9CBAkwTP+pYl5ZWKuNTpVZ14WMYSIrTml3mAZ3ADhUqo7uYFCB8mcNZ i9rImOEsoe7qWr84Ljc89IeajSxXMa1V1UMWp014qIWQIcfjCpazBv9sjGlzHrDP2BCz MtYkKc9g1HsxB0PZ2qFw8CRpvwyzXYlu6QhxBJPRS4mlBHDgtgeTMXyH5pUMCSH0HawD VaWl1dZ7JNKB9685Rcgzl1bB8A48H+91HyMqGwKsUHx3UduLjqKH3BwT8db3zCGKjZX2 JrAfWcGO9rbWIV9aWMAofVGPGos/S2pynNxwedMN9Og2tz7Nc4XwRhN+MAjDidGjJw+H iO4g== 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 o12-v6si12998983pgv.367.2018.05.04.10.31.46; Fri, 04 May 2018 10:32:01 -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 S1751795AbeEDRbP (ORCPT + 99 others); Fri, 4 May 2018 13:31:15 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:36268 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeEDRbL (ORCPT ); Fri, 4 May 2018 13:31:11 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (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 1DFE413416BBF; Fri, 4 May 2018 10:31:09 -0700 (PDT) Date: Fri, 04 May 2018 13:31:08 -0400 (EDT) Message-Id: <20180504.133108.824679852510791586.davem@davemloft.net> To: dh.herrmann@gmail.com Cc: linux-kernel@vger.kernel.org, jmorris@namei.org, paul@paul-moore.com, teg@jklm.no, sds@tycho.nsa.gov, selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, eparis@parisplace.org, serge@hallyn.com, casey@schaufler-ca.com, netdev@vger.kernel.org Subject: Re: [PATCH v2 2/4] net: hook socketpair() into LSM From: David Miller In-Reply-To: <20180504142822.15233-3-dh.herrmann@gmail.com> References: <20180504142822.15233-1-dh.herrmann@gmail.com> <20180504142822.15233-3-dh.herrmann@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) 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]); Fri, 04 May 2018 10:31:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Herrmann Date: Fri, 4 May 2018 16:28:20 +0200 > Use the newly created LSM-hook for socketpair(). The default hook > return-value is 0, so behavior stays the same unless LSMs start using > this hook. > > Acked-by: Serge Hallyn > Signed-off-by: Tom Gundersen > Signed-off-by: David Herrmann Acked-by: David S. Miller