Oleg Verych wrote:
I've asked why it's needed and why euidaccess() from glibc
wasn't used, especially in case of selinux stuff.
I wonder even more why access() syscall isn't a solution, because
/bin/sh isn't set-uid by definition.
#/bin/cc glibc/sysdeps/posix/euidaccess.c
[...]
/* If we are not set-uid or set-gid, access does the same. */
return access (path, mode);
[...]
#end_cc
It might be run from a setuid program.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html