New User, Welcome!     Login

Re: /proc filesystem allows bypassing directory permissions on Linux

From: psz maths usyd edu au
To: dot dotat at, matthew dempsky org
Cc: bugtraq securityfocus com, pavel ucw cz
Subject: Re: /proc filesystem allows bypassing directory permissions on Linux
Date: Tue - Oct 27, 2009 01:45 PM


Tony Finch <dot@dotat.at> wrote:

> According to POSIX, if you open the directory with O_SEARCH then openat()
> does not re-check search (+x) permissions.

My 2.6.26 kernel (or Debian lenny) does not seem to know about O_SEARCH.
But anyway... even if openat() does not re-check permissions, it should
surely fail when in fact it does not have permissions? Surely, directory
contents are not cached? Or, do you have an example (of a running OS)
where openat() succeeds without permissions?

Cheers, Paul

Paul Szabo   psz@maths.usyd.edu.au   http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics   University of Sydney    Australia




Copyright © 1995-2012 LinuxRocket.net. All rights reserved.

Nearly all of LinuxRocket's features are free. Be kind and donate to the cause!