Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757891AbbFQH7x (ORCPT ); Wed, 17 Jun 2015 03:59:53 -0400 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:42784 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754596AbbFQH7p convert rfc822-to-8bit (ORCPT ); Wed, 17 Jun 2015 03:59:45 -0400 From: Naoya Horiguchi To: Konstantin Khlebnikov CC: "linux-mm@kvack.org" , Andrew Morton , "linux-api@vger.kernel.org" , Mark Williamson , "linux-kernel@vger.kernel.org" , "Kirill A. Shutemov" Subject: Re: [PATCH v3 1/4] pagemap: check permissions and capabilities at open time Thread-Topic: [PATCH v3 1/4] pagemap: check permissions and capabilities at open time Thread-Index: AQHQqNNaBc+f/Sk4c0OYo9HqeROtpw== Date: Wed, 17 Jun 2015 07:58:10 +0000 Message-ID: <20150617075809.GB384@hori1.linux.bs1.fc.nec.co.jp> References: <20150609195333.21971.58194.stgit@zurg> <20150609200015.21971.25692.stgit@zurg> In-Reply-To: <20150609200015.21971.25692.stgit@zurg> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.22] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <4D66D730AA62554CA938E4CF12CCA0A0@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 895 Lines: 16 On Tue, Jun 09, 2015 at 11:00:15PM +0300, Konstantin Khlebnikov wrote: > From: Konstantin Khlebnikov > > This patch moves permission checks from pagemap_read() into pagemap_open(). > > Pointer to mm is saved in file->private_data. This reference pins only > mm_struct itself. /proc/*/mem, maps, smaps already work in the same way. > > Signed-off-by: Konstantin Khlebnikov > Link: http://lkml.kernel.org/r/CA+55aFyKpWrt_Ajzh1rzp_GcwZ4=6Y=kOv8hBz172CFJp6L8Tg@mail.gmail.com Reviewed-by: Naoya Horiguchi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/