Home | History | Annotate | Download | only in qemu

Lines Matching refs:pwd

72 #include <pwd.h>
4953 struct passwd *pwd = NULL;
6287 pwd = getpwnam(run_as);
6288 if (!pwd) {
6306 if (setgid(pwd->pw_gid) < 0) {
6307 fprintf(stderr, "Failed to setgid(%d)\n", pwd->pw_gid);
6310 if (setuid(pwd->pw_uid) < 0) {
6311 fprintf(stderr, "Failed to setuid(%d)\n", pwd->pw_uid);