From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751282AbdALIyR (ORCPT ); Thu, 12 Jan 2017 03:54:17 -0500 Received: from mga07.intel.com ([134.134.136.100]:49099 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbdALIxv (ORCPT ); Thu, 12 Jan 2017 03:53:51 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,349,1477983600"; d="scan'208";a="212467355" From: Jike Song To: alex.williamson@redhat.com, serge@hallyn.com Cc: kwankhede@nvidia.com, kraxel@redhat.com, linux-security-module@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jike Song Subject: [v2 1/2] capability: export has_capability Date: Thu, 12 Jan 2017 16:52:02 +0800 Message-Id: <1484211123-8139-2-git-send-email-jike.song@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1484211123-8139-1-git-send-email-jike.song@intel.com> References: <1484211123-8139-1-git-send-email-jike.song@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org has_capability() is sometimes needed by modules to test capability for specified task other than current, so export it. Cc: Alex Williamson Cc: Kirti Wankhede Acked-by: Serge Hallyn Signed-off-by: Jike Song --- kernel/capability.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/capability.c b/kernel/capability.c index a98e814..f97fe77 100644 --- a/kernel/capability.c +++ b/kernel/capability.c @@ -318,6 +318,7 @@ bool has_capability(struct task_struct *t, int cap) { return has_ns_capability(t, &init_user_ns, cap); } +EXPORT_SYMBOL(has_capability); /** * has_ns_capability_noaudit - Does a task have a capability (unaudited) -- 1.9.3