Received: by 10.223.176.5 with SMTP id f5csp878392wra; Tue, 30 Jan 2018 21:20:02 -0800 (PST) X-Google-Smtp-Source: AH8x2277PYycJNkv++/f7h6DNNznrAXkzcx8PbB4VxZpHnF+LJ6T4sxhkBW343/6N7srp4MWbgwy X-Received: by 10.99.125.72 with SMTP id m8mr25609558pgn.146.1517376002001; Tue, 30 Jan 2018 21:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517376001; cv=none; d=google.com; s=arc-20160816; b=sxRK5lDfCKhTW8GlgJDP1plkp2PDkcPvioR8GYMs1WpMXZE+eQIJIcLoF1fTL6EPwY /3X4VbrPlpYFV82D3IxsWRHlpALiut0GnozsHml7hIgYYIPrUzkPsp7zQkdsQJvEXd+C pGrZwwx7NAB6dhEwO7fVFs4BZtStNAjGWXzdW0/IO5qTQJEH7n/S9SOdINl3rBE5GsMB crxvAL5or66Qlr3nSt4z1wl39inleBhmJv3wkpna7lBi3S08AJnERmIY4XLmWvOz7sYq wYaPlFAaa6RZUQfMVoTo6sfc/rD4rp//tDpVdv3BMvTBXqdUmQ7kxgCVO9lE0g3oeVxD WsEw== 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 :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from:arc-authentication-results; bh=WoMsekx/9sEcmb56IW5n3LUcRafrRZzIl0EN6R8w5yU=; b=DEHAuDveO8nVuoDGCM49U7iYQZd36c0IrcPbsZ6VwfodxQ33DetyjbDxfC/xlgiVP+ nxlOIRkTQjafcCUUjg2z/FMTeH1ZkfgHdquga44PFMEZbwKivd+bi0ehDb6I9jelJMR4 /V0mQmwXMir2tLvZAyN5thTJQSMRephmtdb4NvkoDi34kq6JZJhi+4yK0Gw7/U/tm/ok kyXARkT/tGJyAgzn2maYbkTysILBSDq3WvGl9vEXnoSvG2cvYygo4Fin5iTJ7PJsE9RF nuqlVo9xH5M7n4jkGMbD+dLgOR7w1qE7zmDZiDfPFJwgIkzP1weLvw2yrqTF7/xGa/UU R8FA== 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 t64si2567348pgt.686.2018.01.30.21.19.47; Tue, 30 Jan 2018 21:20:01 -0800 (PST) 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 S1752573AbeAaFQy (ORCPT + 99 others); Wed, 31 Jan 2018 00:16:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:35102 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbeAaFQv (ORCPT ); Wed, 31 Jan 2018 00:16:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1E324AB40; Wed, 31 Jan 2018 05:16:50 +0000 (UTC) From: NeilBrown To: David Howells , Andrew Morton , Ingo Molnar , Anna Schumaker Date: Wed, 31 Jan 2018 16:15:39 +1100 Subject: [PATCH 3/4] cred: export get_task_cred(). Cc: NFS , lkml Message-ID: <151737573954.14845.13896237848012870176.stgit@noble> In-Reply-To: <151737571564.14845.2874586176125198504.stgit@noble> References: <151737571564.14845.2874586176125198504.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'. Signed-off-by: NeilBrown --- kernel/cred.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cred.c b/kernel/cred.c index f11aa4e0d2b9..3e43bde1fd3c 100644 --- a/kernel/cred.c +++ b/kernel/cred.c @@ -200,6 +200,7 @@ const struct cred *get_task_cred(struct task_struct *task) rcu_read_unlock(); return cred; } +EXPORT_SYMBOL(get_task_cred); /* * Allocate blank credentials, such that the credentials can be filled in at a