Home
last modified time | relevance | path

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

/openbmc/qemu/
H A Dos-posix.c93 static struct passwd *user_pwd; /* NULL non-NULL NULL */ variable
112 user_pwd = getpwnam(user_id); in os_set_runas()
113 if (user_pwd) { in os_set_runas()
131 user_pwd = NULL; in os_set_runas()
139 assert((user_uid == (uid_t)-1) || user_pwd == NULL); in change_process_uid()
143 if (user_pwd || user_uid != (uid_t)-1) { in change_process_uid()
144 gid_t intended_gid = user_pwd ? user_pwd->pw_gid : user_gid; in change_process_uid()
145 uid_t intended_uid = user_pwd ? user_pwd->pw_uid : user_uid; in change_process_uid()
150 if (user_pwd) { in change_process_uid()
151 if (initgroups(user_pwd->pw_name, user_pwd->pw_gid) < 0) { in change_process_uid()
[all …]