/third_party/ltp/testcases/kernel/syscalls/setresgid/ |
D | setresgid03.c | 32 static gid_t nobody_gid, other_gid, neg = -1; variable 35 {&neg, &neg, &other_gid, &nobody_gid, &nobody_gid, &nobody_gid, 37 {&neg, &other_gid, &neg, &nobody_gid, &nobody_gid, &nobody_gid, 39 {&other_gid, &neg, &neg, &nobody_gid, &nobody_gid, &nobody_gid, 41 {&other_gid, &other_gid, &other_gid, &nobody_gid, &nobody_gid, 42 &nobody_gid, "setresgid(other, other, other)"}, 50 nobody_gid = test_groups[0] = pw->pw_gid; in setup() 54 GID16_CHECK(nobody_gid, setresgid); in setup() 58 SAFE_SETRESGID(nobody_gid, nobody_gid, nobody_gid); in setup()
|
D | setresgid01.c | 96 static uid_t nobody_gid, root_gid, neg = -1; variable 200 GID16_CHECK((nobody_gid = nobody.pw_gid), "setresgid", cleanup) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid02.c | 23 static gid_t root_gid, nobody_gid, other_gid, neg_one = -1; variable 41 &neg_one, &root_gid, EPERM, &nobody_gid, &nobody_gid, 43 &neg_one, &other_gid, EPERM, &nobody_gid, &nobody_gid, 45 &root_gid, &neg_one, EPERM, &nobody_gid, &nobody_gid, 47 &other_gid, &neg_one, EPERM, &nobody_gid, &nobody_gid, 49 &root_gid, &other_gid, EPERM, &nobody_gid, &nobody_gid, 51 &other_gid, &root_gid, EPERM, &nobody_gid, &nobody_gid, 99 nobody_gid = test_groups[0] = ltpuser->pw_gid; in setup() 105 GID16_CHECK(nobody_gid, setregid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/creat/ |
D | creat08.c | 34 static gid_t nobody_gid, free_gid; variable 43 nobody_gid = ltpuser->pw_gid; in setup() 45 (int)nobody_gid); in setup() 46 free_gid = tst_get_free_gid(nobody_gid); in setup() 108 SAFE_SETGID(nobody_gid); in run() 110 file_test(NOSETGID_A, MODE_RWX, 0, nobody_gid); in run() 111 file_test(SETGID_A, MODE_SGID, 1, nobody_gid); in run()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open10.c | 32 static gid_t nobody_gid, free_gid; variable 41 nobody_gid = ltpuser->pw_gid; in setup() 43 (int)nobody_gid); in setup() 44 free_gid = tst_get_free_gid(nobody_gid); in setup() 106 SAFE_SETGID(nobody_gid); in run() 108 file_test(NOSETGID_A, MODE_RWX, 0, nobody_gid); in run() 109 file_test(SETGID_A, MODE_SGID, 1, nobody_gid); in run()
|
/third_party/ltp/testcases/kernel/syscalls/setegid/ |
D | setegid01.c | 41 static gid_t nobody_gid; variable 72 nobody_gid = nobody->pw_gid; in setup() 84 tst_resm(TINFO, "calling setegid(nobody_gid %d)", nobody_gid); in setegid_verify() 85 SAFE_SETEGID(cleanup, nobody_gid); in setegid_verify() 92 if (nobody_gid != cur_egid) { in setegid_verify()
|
/third_party/ltp/testcases/kernel/security/dirtyc0w/ |
D | dirtyc0w.c | 44 static gid_t nobody_gid; variable 55 nobody_gid = pw->pw_gid; in setup() 71 SAFE_SETGID(nobody_gid); in dirtyc0w_test()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl06.c | 23 static gid_t nobody_gid; variable 44 SAFE_SETGID(nobody_gid); in do_prctl() 83 nobody_gid = pw->pw_gid; in setup()
|