mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: Alexander Viro <viro@math.psu.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] missing checks in exec_permission_light()
Date: Wed, 01 May 2002 18:03:56 +1000	[thread overview]
Message-ID: <87elgwcn0z.fsf@enki.rimspace.net> (raw)
In-Reply-To: <Pine.GSO.4.21.0204302340340.10523-100000@weyl.math.psu.edu>

On Tue, 30 Apr 2002, Alexander Viro wrote:
> 	Missing checks added...
> 
> diff -urN C12-0/fs/namei.c C12-current/fs/namei.c
> --- C12-0/fs/namei.c	Tue Apr 30 20:23:38 2002
> +++ C12-current/fs/namei.c	Tue Apr 30 23:37:15 2002
> @@ -324,6 +324,12 @@
>  	if (mode & MAY_EXEC)
>  		return 0;
> 
> +	if ((inode->i_mode & S_IXUGO) && capable(CAP_DAC_OVERRIDE))
> +		return 0;
> +
> +	if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH))
> +		return 0;
> +
>  	return -EACCES;
>  }

Looking at this it seems that it would explain the odd set of errors I
got reported during bootup under 2.5.12 -- a set of "permission denied"
errors from find(1) where, under 2.5.6, none had occurred.

These were on directories that are not owner by root, with the process
running as root.

I can look deeper into the problem, though, if you don't think that this
is the cause of it.

Regards,
        Daniel

-- 
It is easier to build strong children than to repair broken men.
        -- Frederick Douglas

  reply	other threads:[~2002-05-01  8:04 UTC|newest]

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

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=87elgwcn0z.fsf@enki.rimspace.net \
    --to=daniel@rimspace.net \
    --cc=linux-kernel@vger.kernel.org \
    --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®