Searched refs:old_uid (Results 1 – 4 of 4) sorted by relevance
148 uid_t old_uid = getuid(); in permanently_drop_suid() local163 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() local286 if (old_uid != pw->pw_uid && in permanently_set_uid()287 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_set_uid()
43 uid_t old_uid; in main() local67 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()
80 int setup_euid(char *uname, uid_t * old_uid) in setup_euid() argument85 *old_uid = geteuid(); in setup_euid()99 int cleanup_euid(uid_t old_uid) in cleanup_euid() argument103 rc = seteuid(old_uid); in cleanup_euid()
126 int setup_euid(char *uname, uid_t *old_uid);127 int cleanup_euid(uid_t old_uid);