/external/ltp/testcases/kernel/syscalls/getresgid/ |
H A D | getresgid02.c | 142 struct passwd *user_id; /* passwd struct for test user */ local 154 if ((user_id = getpwnam(LTPUSER)) == NULL) { 159 pe_gid = user_id->pw_gid; 162 ps_gid = user_id->pw_gid;
|
H A D | getresgid03.c | 146 struct passwd *user_id; /* passwd struct for test user */ local 161 if ((user_id = getpwnam("nobody")) == NULL) { 167 pe_gid = user_id->pw_gid;
|
/external/ltp/testcases/kernel/syscalls/getresuid/ |
H A D | getresuid02.c | 139 struct passwd *user_id; /* passwd struct for test user */ local 151 if ((user_id = getpwnam(LTPUSER)) == NULL) { 156 pe_uid = user_id->pw_uid; 159 ps_uid = user_id->pw_uid;
|
H A D | getresuid03.c | 141 struct passwd *user_id; /* passwd struct for test user */ local 156 if ((user_id = getpwnam("nobody")) == NULL) { 162 pe_uid = user_id->pw_uid;
|
/external/ltp/testcases/kernel/syscalls/chown/ |
H A D | chown03.c | 103 uid_t user_id; /* Owner id of the test file. */ local 114 UID16_CHECK((user_id = geteuid()), "chown", cleanup) 129 if (stat_buf.st_uid != user_id || 134 stat_buf.st_gid, user_id, group_id);
|
H A D | chown05.c | 88 uid_t user_id; member in struct:test_case_t 108 uid_t user_id; /* user id of the user set for testfile */ local 120 user_id = test_cases[i].user_id; 123 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id)); 131 if (user_id == -1) 132 user_id = test_cases[i - 1].user_id; 136 if (stat_buf.st_uid != user_id || 140 "%d", TESTFILE, user_id, [all...] |
H A D | chown02.c | 98 uid_t user_id; member in struct:test_case_t 120 uid_t user_id; /* user id of the user set for testfile */ local 136 user_id = test_cases[i].user_id; 144 TEST(CHOWN(cleanup, file_name, user_id, group_id)); 165 if (stat_buf.st_uid != user_id || 170 user_id, group_id);
|
H A D | chown04.c | 100 uid_t user_id; local 107 UID16_CHECK((user_id = geteuid()), "chown", cleanup) 114 TEST(CHOWN(cleanup, tc[i].pathname, user_id, group_id));
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown03.c | 64 uid_t user_id; local 74 user_id = geteuid(); 87 if ((stat_buf.st_uid != user_id) || 91 TESTFILE, user_id, group_id);
|
H A D | fchown05.c | 45 uid_t user_id; member in struct:test_case_t 66 uid_t user_id; local 77 user_id = tc[i].user_id; 80 TEST(FCHOWN(cleanup, fildes, user_id, group_id)); 90 if (user_id == (uid_t)-1) 91 user_id = tc[i - 1].user_id; 96 if ((stat_buf.st_uid != user_id) || 100 TESTFILE, user_id, group_i [all...] |
H A D | fchown02.c | 58 uid_t user_id; member in struct:test_case 74 TEST(FCHOWN(cleanup, *t->fd, t->user_id, t->group_id)); 83 if ((stat_buf.st_uid != t->user_id) || 87 t->pathname, t->user_id, t->group_id,
|
/external/ltp/testcases/kernel/syscalls/lchown/ |
H A D | lchown01.c | 55 uid_t user_id; member in struct:test_case_t 87 uid_t user_id = test_cases[i].user_id; local 96 TEST(LCHOWN(cleanup, SFILE, user_id, group_id)); 111 if (user_id == -1) { 113 user_id = 114 test_cases[i - 1].user_id; 116 user_id = geteuid(); 131 if ((stat_buf.st_uid != user_id) || 136 user_id, group_i [all...] |
H A D | lchown02.c | 112 uid_t user_id; local 120 user_id = geteuid(); 121 UID16_CHECK(user_id, lchown, cleanup); 137 TEST(LCHOWN(cleanup, file_name, user_id, group_id));
|
/external/ltp/testcases/kernel/syscalls/lstat/ |
H A D | lstat03.c | 52 static uid_t user_id; variable 80 if ((stat_buf.st_uid != user_id) || 114 user_id = getuid();
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
H A D | fstat02.c | 43 static uid_t user_id; variable 62 if (stat_buf.st_uid != user_id) { 64 stat_buf.st_uid, user_id); 142 user_id = getuid();
|
/external/ltp/testcases/kernel/syscalls/stat/ |
H A D | stat01.c | 44 static uid_t user_id; variable 62 if (stat_buf.st_uid != user_id) { 64 stat_buf.st_uid, user_id); 145 user_id = getuid();
|
H A D | stat02.c | 92 uid_t user_id; /* eff. user id/group id of test process */ variable 129 if ((stat_buf.st_uid != user_id) || 214 user_id = getuid();
|
/external/ltp/testcases/realtime/func/async_handler/ |
H A D | async_handler_jk.c | 139 int user_id; // User thread - that fires the event local 150 user_id = 155 join_thread(user_id);
|
/external/ltp/testcases/kernel/fs/fs_perms/ |
H A D | fs_perms.c | 69 int user_id, int group_id) 98 if (chown(file_name, user_id, group_id)) 106 static int testfperm(const char *file_name, int flag, int user_id, argument 118 if (setuid(user_id)) 120 "Could not setuid to %d.", user_id); 182 uid_t fuser_id, user_id; local 202 user_id = str_to_l(argv[4], "tester uid", 10); 213 res2 = testfperm(TEST_FILE_NAME2, 1, user_id, group_id, fperm); 221 res1 = testfperm(TEST_FILE_NAME1, 0, user_id, group_id, fperm); 225 fperm[0], fmode, fuser_id, fgroup_id, user_id, group_i 68 testsetup(const char *file_name, int flag, mode_t mode, int user_id, int group_id) argument [all...] |
/external/tensorflow/tensorflow/contrib/tensorboard/db/ |
H A D | summary_db_writer_test.cc | 144 int64 user_id = QueryInt("SELECT user_id FROM Users"); local 148 EXPECT_LT(0LL, user_id); 156 EXPECT_EQ(user_id, QueryInt("SELECT user_id FROM Experiments")); 315 QueryInt("SELECT user_id FROM Users"), ", ",
|
/external/compiler-rt/lib/lsan/ |
H A D | lsan_thread.cc | 85 u32 ThreadCreate(u32 parent_tid, uptr user_id, bool detached) { argument 86 return thread_registry->CreateThread(user_id, detached, parent_tid, 117 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) {
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_thread_registry.cc | 20 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0), 43 user_id = 0; 52 user_id = 0; 71 user_id = _user_id; 121 u32 ThreadRegistry::CreateThread(uptr user_id, bool detached, u32 parent_tid, argument 152 tctx->SetCreated(user_id, total_threads_++, detached, 209 void ThreadRegistry::SetThreadNameByUserId(uptr user_id, const char *name) { argument 213 if (tctx != 0 && tctx->user_id == user_id &&
|
H A D | sanitizer_thread_registry.h | 43 uptr user_id; // Some opaque user thread id (e.g. pthread_t). member in class:__sanitizer::ThreadContextBase 96 u32 CreateThread(uptr user_id, bool detached, u32 parent_tid, void *arg); 114 void SetThreadNameByUserId(uptr user_id, const char *name);
|
/external/ltp/testcases/kernel/security/prot_hsymlinks/ |
H A D | prot_hsymlinks.c | 560 uid_t user_id = 0; local 570 user_id = pswd->pw_uid; 575 SAFE_SETEUID(cleanup, user_id);
|
/external/selinux/checkpolicy/ |
H A D | module_compiler.c | 461 char *user_id, user_datum_t *user) 466 delim = strrchr(user_id, '.'); 470 bounds_id = strdup(user_id); 475 bounds_id[(size_t)(delim - user_id)] = '\0'; 480 bounds_id, user_id); 488 user_id, bounds_id, 460 user_implicit_bounds(hashtab_t users_tab, char *user_id, user_datum_t *user) argument
|