Lines Matching refs:uid_t
80 static int drop_privs(uid_t uid) in drop_privs()
140 static int spawn_command(const char *cmd, uid_t uid){ in spawn_command()
170 static int check_owner_uid(uid_t uid, const char *file, struct stat *st) { in check_owner_uid()
412 if ((uid_t)setfsuid(0) != 0) { in cleanup_tmpdir()
419 if ((uid_t)setfsuid(pwd->pw_uid) != 0) { in cleanup_tmpdir()
444 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir()
465 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir()
521 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir()
529 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir()
642 uid_t uid = getuid(); in main()
719 if (((uid_t)setfsuid(uid) != 0) && (errno != 0)) { in main()
732 if ((uid_t)setfsuid(0) != uid) return -1; in main()
768 if ((uid_t)setfsuid(uid) != 0) goto childerr; in main()