From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758349AbcLUIS6 (ORCPT ); Wed, 21 Dec 2016 03:18:58 -0500 Received: from mga11.intel.com ([192.55.52.93]:15296 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbcLUISx (ORCPT ); Wed, 21 Dec 2016 03:18:53 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,382,1477983600"; d="scan'208";a="205260330" From: Jike Song To: serge@hallyn.com, alex.williamson@redhat.com Cc: linux-security-module@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kwankhede@nvidia.com, kraxel@redhat.com, jike.song@intel.com Subject: [PATCH 0/2] test capability for remote task Date: Thu, 22 Dec 2016 00:10:14 +0800 Message-Id: <1482336616-19252-1-git-send-email-jike.song@intel.com> X-Mailer: git-send-email 2.4.4.488.gdf97e5d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sometimes vfio iommu type1 needs to pin memory for a remote task other than current, thereby needs to test the CAP_IPC_LOCK capability for that task. The proper routine for this purpose is has_capability(), but it is not yet exported for modules. None of currently exported capability- testing symbols allows a specified task. So here has_capability() is exported then used in the vfio iommu type1 driver. Jike Song (2): capability: export has_capability vfio iommu type1: fix the testing of capability for remote task drivers/vfio/vfio_iommu_type1.c | 6 ++---- kernel/capability.c | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) -- 2.4.4.488.gdf97e5d