Home
last modified time | relevance | path

Searched refs:old_uid (Results 1 – 4 of 4) sorted by relevance

/external/openssh/
Duidswap.c148 uid_t old_uid = getuid(); in permanently_drop_suid() local
163 if (old_uid != uid && in permanently_drop_suid()
164 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_drop_suid()
219 uid_t old_uid = getuid(); in permanently_set_uid() local
286 if (old_uid != pw->pw_uid && in permanently_set_uid()
287 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_set_uid()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D26-2.c43 uid_t old_uid; in main() local
67 old_uid = stat_buf.st_uid; in main()
113 if (stat_buf.st_uid == old_uid && stat_buf.st_gid == old_gid) { in main()
118 if (stat_buf.st_uid != old_uid) in main()
/external/ltp/testcases/kernel/syscalls/utils/
Dcommon_j_h.c80 int setup_euid(char *uname, uid_t * old_uid) in setup_euid() argument
85 *old_uid = geteuid(); in setup_euid()
99 int cleanup_euid(uid_t old_uid) in cleanup_euid() argument
103 rc = seteuid(old_uid); in cleanup_euid()
Dinclude_j_h.h126 int setup_euid(char *uname, uid_t *old_uid);
127 int cleanup_euid(uid_t old_uid);