Home
last modified time | relevance | path

Searched refs:pw_uid (Results 26 - 50 of 238) sorted by relevance

12345678910

/third_party/ltp/testcases/kernel/syscalls/chown/
H A Dchown03.c51 SAFE_SETEUID(ltpuser->pw_uid); in run()
76 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/mlock/
H A Dmlock02.c56 SAFE_SETEUID(ltpuser->pw_uid); in test_enomem2()
73 SAFE_SETEUID(ltpuser->pw_uid); in test_eperm()
/third_party/ltp/testcases/kernel/syscalls/utime/
H A Dutime03.c43 test_users[0] = pw->pw_uid; in setup()
52 SAFE_CHOWN(TEMP_FILE, pw->pw_uid, pw->pw_gid); in setup()
H A Dutime02.c40 SAFE_CHOWN(TEMP_FILE, pw->pw_uid, pw->pw_gid); in setup()
44 SAFE_SETEUID(pw->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/fchown/
H A Dfchown03.c60 SAFE_SETEUID(ltpuser->pw_uid); in run()
79 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
H A Dmigrate_pages02.c175 SAFE_SETEUID(ltpuser->pw_uid); in test_migrate_current_process()
214 SAFE_SETUID(ltpuser->pw_uid); in test_migrate_other_process()
235 SAFE_SETUID(ltpuser->pw_uid); in test_migrate_other_process()
/third_party/cups-filters/backend/
H A Dcups-brf.c87 if (setuid(pw->pw_uid)) { in main()
88 fprintf(stderr, "ERROR: turning uid into %u\n", pw->pw_uid); in main()
/third_party/ltp/testcases/kernel/syscalls/adjtimex/
H A Dadjtimex02.c79 SAFE_SETEUID(ltpuser->pw_uid); in verify_adjtimex()
116 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/setfsuid/
H A Dsetfsuid04.c83 if (SETFSUID(NULL, ltpuser->pw_uid) == -1) { in do_master_child()
173 UID16_CHECK(ltpuser->pw_uid, setfsuid, cleanup); in setup()
H A Dsetfsuid01.c26 nobody_uid = nobody->pw_uid; in setup()
H A Dsetfsuid03.c28 nobody_uid = nobody->pw_uid; in setup()
/third_party/toybox/openharmony/
H A Dsu.c88 if (initgroups(pwd->pw_name, pwd->pw_gid) || setgid(pwd->pw_uid) || setuid(pwd->pw_uid)) in xsetuser()
/third_party/toybox/toys/other/
H A Dlogin.c110 if (pwd->pw_uid && !access("/etc/nologin", R_OK)) { in login_main()
119 if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600)) in login_main()
/third_party/pulseaudio/src/daemon/
H A Dohos_pa_main.c278 PA_SYSTEM_USER, (unsigned long) pw->pw_uid, in change_user()
289 if (pa_make_secure_dir(PA_SYSTEM_RUNTIME_PATH, 0755, pw->pw_uid, gr->gr_gid, true) < 0) { in change_user()
294 if (pa_make_secure_dir(PA_SYSTEM_STATE_PATH, 0700, pw->pw_uid, gr->gr_gid, true) < 0) { in change_user()
323 r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); in change_user()
325 if ((r = setuid(pw->pw_uid)) >= 0) in change_user()
326 r = seteuid(pw->pw_uid); in change_user()
328 r = setreuid(pw->pw_uid, pw->pw_uid); in change_user()
[all...]
/third_party/curl/lib/
H A Dsetup-vms.h179 vms_passwd_cache.pw_uid = my_passwd->pw_uid; in vms_getpwuid()
180 vms_passwd_cache.pw_gid = my_passwd->pw_uid; in vms_getpwuid()
/third_party/ltp/testcases/kernel/syscalls/symlink/
H A Dsymlink03.c226 if (setuid(ltpuser->pw_uid) == -1) in setup()
227 tst_resm(TINFO | TERRNO, "setuid(%d) failed", ltpuser->pw_uid); in setup()
/third_party/toybox/toys/pending/
H A Duseradd.c90 pwd.pw_uid = TT.uid; in useradd_main()
120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir, in useradd_main()
/third_party/musl/src/passwd/
H A Dputpwent.c8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent()
/third_party/ltp/testcases/kernel/syscalls/setegid/
H A Dsetegid02.c24 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/chroot/
H A Dchroot04.c37 SAFE_SETEUID(ltpuser->pw_uid); in setup()
H A Dchroot01.c32 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/nice/
H A Dnice04.c45 SAFE_SETUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/statfs/
H A Dstatfs03.c31 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/setgid/
H A Dsetgid02.c38 SAFE_SETUID(nobody->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/setuid/
H A Dsetuid03.c34 uid = pw->pw_uid; in setup()

Completed in 8 milliseconds

12345678910