Home | History | Annotate | Download | only in qemu

Lines Matching refs:pwd

37 #include <pwd.h>
5017 struct passwd *pwd = NULL;
6269 pwd = getpwnam(run_as);
6270 if (!pwd) {
6288 if (setgid(pwd->pw_gid) < 0) {
6289 fprintf(stderr, "Failed to setgid(%d)\n", pwd->pw_gid);
6292 if (setuid(pwd->pw_uid) < 0) {
6293 fprintf(stderr, "Failed to setuid(%d)\n", pwd->pw_uid);