Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3782089pxb; Mon, 9 Nov 2020 22:58:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnoTUiWGYGQ3i5qDqM/fdNL/PkJOVTGwkMCImVN1RvfRi7200NXxLtFJdTPgm+KdgUJFiK X-Received: by 2002:aa7:da01:: with SMTP id r1mr11973998eds.45.1604991496942; Mon, 09 Nov 2020 22:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604991496; cv=none; d=google.com; s=arc-20160816; b=IVvvRJLi3p6PXBUGV0eF/WlS84S8z0ertoqcvr1KUkdvgVOn3/adFp4saDK3MRtgm2 SmtN6FoMWcaJabw9QVWbHuv8whZdOhdzzkJkPEDvlW3crUEVgFK+ki+siwhVX+nL4+0c 8coy/9q+NsKvaY+tD8VuR7eol+LPtxY2fJ5Sr/+SUXBJTfh7+hOLz1GsZ74VQdmjN4Pz mNoZCwOVkFC/NcRPPwR8T9SLnlwZTvyYIdTVMOMiDfT9zs4X6PQ+1XLhHSyxDRA90dMr qF8s5JWJuvQVlkco+WrWKiRN3LbYgWq64kLtuVfjMla+y4FpzSz23BWUJlr45/DC6iIC 5ekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=YdB+pQF3FcWp3I7tUwQ4/oHGYp9EHVj/QtRJC1f2mss=; b=af+uMJZug32v1QpseNUdXi44y7QO5sOWIlhPkGbHV45OF6e3Krxhd02+GJwqcgjldU VeI4MuO11nt2rRWnDxTte8NCxciI97VgbgPVtdx79JRzVE+A/jErvkbaa6s7NEnqp0YR vA9V9PUrm/rY+aKAf7crouAhV9l5vhffDfHKGFd+Q7Z9wbx1wzVaRHQNA2gd5ShzGUE6 kDcYJI5jpBCN2+7gvobojkSIcBYnZT8/89Z6Ebvv14XYLqtLiNl9RhHBkq9AK7eCl0aT g0SR6ugLWnhtKp3RCki+q41v/+awqJErGSsLoXJ0FYmOnyedji3fuHx4aErofZ7hH5ms wMww== ARC-Authentication-Results: i=1; mx.google.com; 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 w10si8923073ejn.255.2020.11.09.22.57.53; Mon, 09 Nov 2020 22:58:16 -0800 (PST) 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; 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 S1731412AbgKJG4e (ORCPT + 99 others); Tue, 10 Nov 2020 01:56:34 -0500 Received: from namei.org ([65.99.196.166]:39896 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgKJG4e (ORCPT ); Tue, 10 Nov 2020 01:56:34 -0500 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 0AA6uHwv009615; Tue, 10 Nov 2020 06:56:17 GMT Date: Tue, 10 Nov 2020 17:56:17 +1100 (AEDT) From: James Morris To: Casey Schaufler , Florian Westphal , Pablo Neira Ayuso , Jozsef Kadlecsik , Paul Moore cc: casey.schaufler@intel.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, Audit-ML , Kees Cook , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH v22 06/23] LSM: Use lsmblob in security_secid_to_secctx In-Reply-To: <20201105004924.11651-7-casey@schaufler-ca.com> Message-ID: References: <20201105004924.11651-1-casey@schaufler-ca.com> <20201105004924.11651-7-casey@schaufler-ca.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Nov 2020, Casey Schaufler wrote: > Change security_secid_to_secctx() to take a lsmblob as input > instead of a u32 secid. It will then call the LSM hooks > using the lsmblob element allocated for that module. The > callers have been updated as well. This allows for the > possibility that more than one module may be called upon > to translate a secid to a string, as can occur in the > audit code. > > Signed-off-by: Casey Schaufler > Cc: netdev@vger.kernel.org > Cc: linux-audit@redhat.com Ditto with this, + audit. Also, you should put primary maintainers on the To: line or they may miss the email. -- James Morris