mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: pmenage@ensim.com
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org, viro@math.psu.edu
Subject: Re: [PATCH] missing checks in exec_permission_light()
Date: Fri, 03 May 2002 01:36:11 -0700	[thread overview]
Message-ID: <E173YXz-0004wl-00@pmenage-dt.ensim.com> (raw)
In-Reply-To: <0C01A29FBAE24448A792F5C68F5EA47D27C6C7@nasdaq.ms.ensim.com>

In article <0C01A29FBAE24448A792F5C68F5EA47D27C6C7@nasdaq.ms.ensim.com>,
you write:
>Hi!
>
>> +	if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH))
>> +		return 0;
>
>Is this right? This means that root can do cat /, no? That does not
>seem like expected behaviour.
>									Pavel

exec_permission_lite() is only used for MAY_EXEC checks.

Paul

       reply	other threads:[~2002-05-03  8:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0C01A29FBAE24448A792F5C68F5EA47D27C6C7@nasdaq.ms.ensim.com>
2002-05-03  8:36 ` pmenage [this message]
2002-05-01  3:41 Alexander Viro
2002-05-01  8:03 ` Daniel Pittman
2002-05-03  8:03 ` Pavel Machek
2002-05-03  8:36   ` Alexander Viro
2002-05-03  8:40     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E173YXz-0004wl-00@pmenage-dt.ensim.com \
    --to=pmenage@ensim.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=viro@math.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®