From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755337AbbFLXid (ORCPT ); Fri, 12 Jun 2015 19:38:33 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:33545 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbbFLXia (ORCPT ); Fri, 12 Jun 2015 19:38:30 -0400 Message-ID: <557B6D74.2070305@plumgrid.com> Date: Fri, 12 Jun 2015 16:38:28 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andy Lutomirski CC: "David S. Miller" , Ingo Molnar , Steven Rostedt , Wang Nan , Li Zefan , Daniel Wagner , Daniel Borkmann , Linux API , Network Development , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next 1/3] bpf: introduce current->pid, tgid, uid, gid, comm accessors References: <1434145226-17892-1-git-send-email-ast@plumgrid.com> <1434145226-17892-2-git-send-email-ast@plumgrid.com> <557B60DB.5030200@plumgrid.com> <557B6A00.7000600@plumgrid.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/12/15 4:25 PM, Andy Lutomirski wrote: > It's a dangerous tool. Also, shouldn't the returned uid match the > namespace of the task that installed the probe, not the task that's > being probed? so leaking info to unprivileged apps is the concern? The whole thing is for root only as you know. The non-root is still far away. Today root needs to see the whole kernel. That was the goal from the beginning.