Re: [PATCH v1] perf report: Fix owner error when reading perf.data

From: Taeung Song
Date: Thu Oct 01 2015 - 08:26:38 EST



> On Oct 1, 2015, at 6:10 PM, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
>
> * Taeung Song <treeze.taeung@xxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/