diff options
Diffstat (limited to 'ldso/include/ld_syscall.h')
-rw-r--r-- | ldso/include/ld_syscall.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ldso/include/ld_syscall.h b/ldso/include/ld_syscall.h index 72574b9a9..1e2ceccd6 100644 --- a/ldso/include/ld_syscall.h +++ b/ldso/include/ld_syscall.h @@ -131,25 +131,6 @@ static inline _syscall0(gid_t, _dl_getegid); #define __NR__dl_getpid __NR_getpid static inline _syscall0(gid_t, _dl_getpid); -/* - * Not an actual syscall, but we need something in assembly to say whether - * this is OK or not. - */ -static inline int _dl_suid_ok(void) -{ - uid_t uid, euid, gid, egid; - - uid = _dl_getuid(); - euid = _dl_geteuid(); - gid = _dl_getgid(); - egid = _dl_getegid(); - - if(uid == euid && gid == egid) - return 1; - else - return 0; -} - #define __NR__dl_readlink __NR_readlink static inline _syscall3(int, _dl_readlink, const char *, path, char *, buf, size_t, bufsiz); |