Searched defs:user_id (Results 1 - 25 of 26) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/getresgid/
H A Dgetresgid02.c142 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 Dgetresgid03.c146 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 Dgetresuid02.c139 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 Dgetresuid03.c141 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 Dchown03.c103 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 Dchown05.c88 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 Dchown02.c98 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 Dchown04.c100 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 Dfchown03.c64 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 Dfchown05.c45 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 Dfchown02.c58 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 Dlchown01.c55 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 Dlchown02.c112 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 Dlstat03.c52 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 Dfstat02.c43 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 Dstat01.c44 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 Dstat02.c92 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 Dasync_handler_jk.c139 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 Dfs_perms.c69 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 Dsummary_db_writer_test.cc144 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 Dlsan_thread.cc85 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 Dsanitizer_thread_registry.cc20 : 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 Dsanitizer_thread_registry.h43 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 Dprot_hsymlinks.c560 uid_t user_id = 0; local
570 user_id = pswd->pw_uid;
575 SAFE_SETEUID(cleanup, user_id);
/external/selinux/checkpolicy/
H A Dmodule_compiler.c461 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

Completed in 439 milliseconds

12