Home
last modified time | relevance | path

Searched refs:free_gid (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/open/
Dopen10.c32 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 …]
/third_party/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c34 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 …]
Dcreat09.c47 static gid_t free_gid; variable
57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup()
61 SAFE_CHOWN(WORKDIR, ltpuser->pw_uid, free_gid); in setup()
68 if (buf.st_gid != free_gid) { in setup()
70 buf.st_gid, free_gid); in setup()
84 if (buf.st_gid != free_gid) { in file_test()
86 buf.st_gid, free_gid); in file_test()
/third_party/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c23 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()
/third_party/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c54 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()
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c73 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()