/third_party/ltp/testcases/kernel/syscalls/getresuid/ |
D | getresuid01.c | 87 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()
|
D | getresuid02.c | 92 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()
|
D | getresuid03.c | 91 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/ |
D | setreuid04.c | 46 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()
|
D | setreuid03.c | 24 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()
|
D | setreuid05.c | 26 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()
|
D | setreuid02.c | 24 uid_t *real_uid; member 70 TST_EXP_PASS_SILENT(SETREUID(*tc->real_uid, *tc->eff_uid), "%s", in run()
|
/third_party/ltp/lib/ |
D | tst_pid.c | 58 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/ |
D | setresuid03.c | 24 uid_t *real_uid; member 61 TST_EXP_FAIL(SETRESUID(*tc->real_uid, *tc->eff_uid, *tc->sav_uid), in run()
|
D | setresuid02.c | 26 uid_t *real_uid; member 64 TST_EXP_PASS_SILENT(SETRESUID(*tc->real_uid, *tc->eff_uid, in run()
|
D | setresuid01.c | 21 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/ |
D | setsockopt05.c | 38 int real_uid = getuid(); in setup() local 48 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
|
D | setsockopt06.c | 35 int real_uid = getuid(); in setup() local 43 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup()
|
D | setsockopt07.c | 38 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/ |
D | fanout01.c | 33 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/ |
D | bind06.c | 33 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/ |
D | sendto03.c | 42 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/ |
D | icmp_rate_limit01.c | 56 int real_uid = getuid(); in setup() local 67 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup()
|