Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/getresuid/
Dgetresuid01.c87 UID_T real_uid, /* real/eff./saved user id from getresuid() */ in main() local
102 TEST(GETRESUID(cleanup, &real_uid, &eff_uid, &sav_uid)); in main()
110 if ((real_uid != pr_uid) || (eff_uid != pe_uid) || in main()
114 real_uid, eff_uid, sav_uid); in main()
Dgetresuid02.c92 UID_T real_uid, /* real/eff./saved user id from getresuid() */ in main() local
108 TEST(GETRESUID(cleanup, &real_uid, &eff_uid, &sav_uid)); in main()
116 if ((real_uid != pr_uid) || (eff_uid != pe_uid) || in main()
120 real_uid, eff_uid, sav_uid); in main()
Dgetresuid03.c91 UID_T real_uid, /* real/eff./saved user id from getresuid() */ in main() local
107 TEST(GETRESUID(cleanup, &real_uid, &eff_uid, &sav_uid)); in main()
115 if ((real_uid != pr_uid) || (eff_uid != pe_uid) || in main()
119 real_uid, eff_uid, sav_uid); in main()
/third_party/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid04.c46 uid_t *real_uid; member
83 TEST(SETREUID(cleanup, *test_data[i].real_uid, in main()
89 *test_data[i].real_uid, in main()
94 *test_data[i].real_uid, in main()
Dsetreuid03.c24 uid_t *real_uid; member
85 TST_EXP_FAIL(SETREUID(*tc->real_uid, *tc->eff_uid), EPERM, in run()
88 TST_EXP_PASS(SETREUID(*tc->real_uid, *tc->eff_uid), "%s", in run()
Dsetreuid05.c26 uid_t *real_uid; member
88 TST_EXP_FAIL(SETREUID(*tc->real_uid, *tc->eff_uid), EPERM, in run_child()
91 TST_EXP_PASS(SETREUID(*tc->real_uid, *tc->eff_uid), "%s", in run_child()
Dsetreuid02.c24 uid_t *real_uid; member
70 TST_EXP_PASS_SILENT(SETREUID(*tc->real_uid, *tc->eff_uid), "%s", in run()
/third_party/ltp/lib/
Dtst_pid.c58 unsigned int real_uid; in get_session_uid() local
61 ret = sscanf(sudo_uid, "%u", &real_uid); in get_session_uid()
63 return real_uid; in get_session_uid()
/third_party/ltp/testcases/kernel/syscalls/setresuid/
Dsetresuid03.c24 uid_t *real_uid; member
61 TST_EXP_FAIL(SETRESUID(*tc->real_uid, *tc->eff_uid, *tc->sav_uid), in run()
Dsetresuid02.c26 uid_t *real_uid; member
64 TST_EXP_PASS_SILENT(SETRESUID(*tc->real_uid, *tc->eff_uid, in run()
Dsetresuid01.c21 uid_t *real_uid; member
67 TST_EXP_PASS_SILENT(SETRESUID(*tc->real_uid, *tc->eff_uid, in run()
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt05.c38 int real_uid = getuid(); in setup() local
48 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
Dsetsockopt06.c35 int real_uid = getuid(); in setup() local
43 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
Dsetsockopt07.c38 int real_uid = getuid(); in setup() local
46 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
/third_party/ltp/testcases/network/packet/
Dfanout01.c33 int real_uid = getuid(); in setup() local
45 FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind06.c33 int real_uid = getuid(); in setup() local
42 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c42 int real_uid = getuid(); in setup() local
51 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
/third_party/ltp/testcases/cve/
Dicmp_rate_limit01.c56 int real_uid = getuid(); in setup() local
67 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup()