From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933691AbbJAM0g (ORCPT ); Thu, 1 Oct 2015 08:26:36 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36491 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932829AbbJAM0d convert rfc822-to-8bit (ORCPT ); Thu, 1 Oct 2015 08:26:33 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH v1] perf report: Fix owner error when reading perf.data From: Taeung Song In-Reply-To: <20151001091031.GA6543@gmail.com> Date: Thu, 1 Oct 2015 21:26:26 +0900 Cc: Arnaldo Carvalho de Melo , "linux-kernel@vger.kernel.org" , jolsa@redhat.com, namhyung@kernel.org, Ingo Molnar , Peter Zijlstra Content-Transfer-Encoding: 8BIT Message-Id: <9B4B7598-A70C-4497-8ADC-204A6DA570CF@gmail.com> References: <1443690214-1194-1-git-send-email-treeze.taeung@gmail.com> <20151001091031.GA6543@gmail.com> To: Ingo Molnar X-Mailer: Apple Mail (2.2104) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 1, 2015, at 6:10 PM, Ingo Molnar wrote: > > > * Taeung Song wrote: > >> If perf.data file is owned by some user, >> it can't be read even if current user is root. > > That's intentional: to keep a malicious local user from passing a perf.data to > root who does 'perf report' accidentally or in the wrong directory. > > root can copy or chown it to himself - or we could add some --really-force flag > for that. I got it. I didn’t know its intention. Thanks, Taeung > > Thanks, > > Ingo