public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: LA Walsh <law@sgi.com>
To: linux-kernel@vger.kernel.org
Subject: setfsuid
Date: Wed, 07 Mar 2001 12:03:32 -0800	[thread overview]
Message-ID: <3AA69414.80B10E6E@sgi.com> (raw)

Why doesn't setfsuid return -EPERM when it can't perform the operation?
file: kernel/sys.c, 'sys_setfsuid' around line 779 depending on your
source version.

There is a check if capable(CAP_SETUID), that if it fails, doesn't
return an error.  This seems inconsistent.  In fact the manpage
I have on it states:

RETURN VALUE
       On success, the previous value of fsuid is  returned.   On
       error, the current value of fsuid is returned.
BUGS
       No error messages of any kind are returned to the  caller.
       At  the very least, EPERM should be returned when the call
       fails.

-l
-- 
L A Walsh                        | Trust Technology, Core Linux, SGI
law@sgi.com                      | Voice: (650) 933-5338

                 reply	other threads:[~2001-03-07 20:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3AA69414.80B10E6E@sgi.com \
    --to=law@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    /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