* setfsuid
@ 2001-03-07 20:03 LA Walsh
0 siblings, 0 replies; only message in thread
From: LA Walsh @ 2001-03-07 20:03 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-07 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-07 20:03 setfsuid LA Walsh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox