Re: access() system call

Henrik Nordstrom (hno@hem.passagen.se)
Sun, 08 Feb 1998 23:06:11 +0100


Pawel S. Veselov wrote:
>
> Hello, All !
>
> I found strange behavior for access() system call :
...
> I chmod() but can't access r/w /vmlinux ( I am real root at this )
>
> Any suggestions ?

RTFM ;-)

>From access(2) man page:

The check is done with the process's real uid and gid,
rather than with the effective ids as is done when actu-
ally attempting an operation. This is to allow set-UID
programs to easily determine the invoking user's author-
ity.

---
Henrik Nordström
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu