Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752420AbaGTLvh (ORCPT ); Sun, 20 Jul 2014 07:51:37 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:46041 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbaGTLvg (ORCPT ); Sun, 20 Jul 2014 07:51:36 -0400 X-Auth-Info: QtIXhXpp3eS8ugGiRcpy/h2yKGdO/FTM4fBpjz7PvcY= From: Andreas Schwab To: Richard Weinberger Cc: Joakim Tjernlund , LKML Subject: Re: ls -l /proc/1/exe -> Permission denied References: <87lhrpayl4.fsf@igel.home> <87fvhwxps6.fsf@igel.home> X-Yow: CHUBBY CHECKER just had a CHICKEN SANDWICH in downtown DULUTH! Date: Sun, 20 Jul 2014 13:51:31 +0200 In-Reply-To: (Richard Weinberger's message of "Sun, 20 Jul 2014 13:06:30 +0200") Message-ID: <87bnskxn7g.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Richard Weinberger writes: > On Sun, Jul 20, 2014 at 12:55 PM, Andreas Schwab wrote: >> Joakim Tjernlund writes: >> >>> Andreas Schwab wrote on 2014/07/19 22:21:59: >>>> >>>> Joakim Tjernlund writes: >>>> >>>> > Trying to real /proc//exe I noticed I could not read links not >>>> > belonging to my user such as: >>>> > jocke > ls -l /proc/1/exe >>>> > ls: cannot read symbolic link /proc/1/exe: Permission >>> denied >>>> > >>>> > Is this expected? >>>> >>>> Yes. This information is considered private. >>> >>> I don't understand why though. >> >> It would allow bypassing access restrictions. > > Do you have an example? proc symlinks are special because they actually resolve to the inode. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- 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/