Searched refs:free_gid (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat08.c | 34 static gid_t nobody_gid, free_gid; variable 46 free_gid = tst_get_free_gid(nobody_gid); in setup() 82 SAFE_CHOWN(DIR_A, nobody_uid, free_gid); in run() 88 if (buf.st_gid != free_gid) { in run() 90 buf.st_gid, free_gid); in run() 94 SAFE_CHOWN(DIR_B, nobody_uid, free_gid); in run() 101 if (buf.st_gid != free_gid) { in run() 103 buf.st_gid, free_gid); in run() 115 file_test(NOSETGID_B, MODE_RWX, 0, free_gid); in run() 120 file_test(SETGID_B, MODE_SGID, -1, free_gid); in run() [all …]
|
D | creat09.c | 57 static gid_t free_gid; variable 75 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 79 SAFE_CHOWN(WORKDIR, ltpuser->pw_uid, free_gid); in setup() 86 if (buf.st_gid != free_gid) { in setup() 88 buf.st_gid, free_gid); in setup() 102 if (buf.st_gid != free_gid) { in file_test() 104 buf.st_gid, free_gid); in file_test()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open10.c | 32 static gid_t nobody_gid, free_gid; variable 44 free_gid = tst_get_free_gid(nobody_gid); in setup() 80 SAFE_CHOWN(DIR_A, nobody_uid, free_gid); in run() 86 if (buf.st_gid != free_gid) { in run() 88 buf.st_gid, free_gid); in run() 92 SAFE_CHOWN(DIR_B, nobody_uid, free_gid); in run() 99 if (buf.st_gid != free_gid) { in run() 101 buf.st_gid, free_gid); in run() 113 file_test(NOSETGID_B, MODE_RWX, 0, free_gid); in run() 118 file_test(SETGID_B, MODE_SGID, -1, free_gid); in run() [all …]
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir02.c | 23 static gid_t free_gid; variable 33 if (statbuf.st_gid != free_gid) { in verify_mkdir() 36 statbuf.st_gid, free_gid); in verify_mkdir() 56 free_gid = tst_get_free_gid(pw->pw_gid); in setup() 61 SAFE_CHOWN(TESTDIR1, getuid(), free_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat04.c | 43 static gid_t free_gid; variable 94 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 101 SAFE_CHOWN(WORKDIR, ltpuser->pw_uid, free_gid); in setup() 108 if (buf.st_gid != free_gid) { in setup() 110 buf.st_gid, free_gid); in setup() 124 TST_EXP_EQ_LI(buf.st_gid, free_gid); in file_test()
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod05.c | 54 gid_t free_gid; in setup() local 57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 66 SAFE_CHOWN(TESTDIR, ltpuser->pw_uid, free_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod05.c | 73 gid_t free_gid; in setup() local 76 free_gid = tst_get_free_gid(nobody_u->pw_gid); in setup() 87 SAFE_CHOWN(TESTDIR, nobody_u->pw_uid, free_gid); in setup()
|