Home
last modified time | relevance | path

Searched refs:user_id (Results 1 – 25 of 69) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/chown/
Dchown05.c88 uid_t user_id; member
108 uid_t user_id; /* user id of the user set for testfile */ in main() local
120 user_id = test_cases[i].user_id; in main()
123 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id)); in main()
131 if (user_id == -1) in main()
132 user_id = test_cases[i - 1].user_id; in main()
136 if (stat_buf.st_uid != user_id || in main()
140 "%d", TESTFILE, user_id, in main()
Dchown02.c98 uid_t user_id; member
120 uid_t user_id; /* user id of the user set for testfile */ in main() local
136 user_id = test_cases[i].user_id; in main()
144 TEST(CHOWN(cleanup, file_name, user_id, group_id)); in main()
165 if (stat_buf.st_uid != user_id || in main()
170 user_id, group_id); in main()
Dchown03.c103 uid_t user_id; /* Owner id of the test file. */ in main() local
114 UID16_CHECK((user_id = geteuid()), "chown", cleanup) in main()
129 if (stat_buf.st_uid != user_id || in main()
134 stat_buf.st_gid, user_id, group_id); in main()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown05.c45 uid_t user_id; member
66 uid_t user_id; in main() local
77 user_id = tc[i].user_id; in main()
80 TEST(FCHOWN(cleanup, fildes, user_id, group_id)); in main()
90 if (user_id == (uid_t)-1) in main()
91 user_id = tc[i - 1].user_id; in main()
96 if ((stat_buf.st_uid != user_id) || in main()
100 TESTFILE, user_id, group_id); in main()
Dfchown03.c64 uid_t user_id; in main() local
74 user_id = geteuid(); in main()
87 if ((stat_buf.st_uid != user_id) || in main()
91 TESTFILE, user_id, group_id); in main()
Dfchown02.c58 uid_t user_id; member
74 TEST(FCHOWN(cleanup, *t->fd, t->user_id, t->group_id)); in verify_fchown()
83 if ((stat_buf.st_uid != t->user_id) || in verify_fchown()
87 t->pathname, t->user_id, t->group_id, in verify_fchown()
/external/ltp/testcases/kernel/syscalls/lchown/
Dlchown01.c55 uid_t user_id; member
87 uid_t user_id = test_cases[i].user_id; in main() local
96 TEST(LCHOWN(cleanup, SFILE, user_id, group_id)); in main()
111 if (user_id == -1) { in main()
113 user_id = in main()
114 test_cases[i - 1].user_id; in main()
116 user_id = geteuid(); in main()
131 if ((stat_buf.st_uid != user_id) || in main()
136 user_id, group_id); in main()
Dlchown02.c109 uid_t user_id; in main() local
117 user_id = geteuid(); in main()
118 UID16_CHECK(user_id, lchown, cleanup); in main()
134 TEST(LCHOWN(cleanup, file_name, user_id, group_id)); in main()
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py125 key = token = user_id = None
126 self.assertFalse(xsrfutil.validate_token(key, token, user_id))
129 key = user_id = None
131 self.assertFalse(xsrfutil.validate_token(key, token, user_id))
134 key = user_id = None
136 self.assertFalse(xsrfutil.validate_token(key, token, user_id))
142 key = user_id = None
146 self.assertFalse(xsrfutil.validate_token(key, token, user_id))
153 key = user_id = None
155 self.assertFalse(xsrfutil.validate_token(key, token, user_id,
[all …]
/external/autotest/client/common_lib/cros/
Denrollment.py31 def RemoraEnrollment(browser, user_id, password): argument
40 user_id, password, enterprise_enroll=True,
44 def EnterpriseEnrollment(browser, user_id, password, auto_login=False): argument
52 browser.oobe.NavigateGaiaLogin(user_id, password,
56 browser.oobe.NavigateGaiaLogin(user_id, password)
61 def EnterpriseFakeEnrollment(browser, user_id, password, gaia_id, argument
71 browser.oobe.NavigateFakeLogin(user_id, password, gaia_id,
74 browser.oobe.NavigateFakeLogin(user_id, password, gaia_id)
/external/ltp/testcases/kernel/fs/fs_perms/
Dfs_perms.c69 int user_id, int group_id) in testsetup() argument
98 if (chown(file_name, user_id, group_id)) in testsetup()
106 static int testfperm(const char *file_name, int flag, int user_id, in testfperm() argument
118 if (setuid(user_id)) in testfperm()
120 "Could not setuid to %d.", user_id); in testfperm()
182 uid_t fuser_id, user_id; in main() local
202 user_id = str_to_l(argv[4], "tester uid", 10); in main()
213 res2 = testfperm(TEST_FILE_NAME2, 1, user_id, group_id, fperm); in main()
221 res1 = testfperm(TEST_FILE_NAME1, 0, user_id, group_id, fperm); in main()
225 fperm[0], fmode, fuser_id, fgroup_id, user_id, group_id); in main()
/external/autotest/client/site_tests/enterprise_KioskPerf/
Denterprise_KioskPerf.py48 def verify_enrollment(self, user_id): argument
51 if not user_id in f.read():
56 user_id, password = utils.get_signin_credentials(os.path.join(
58 if not (user_id and password):
64 user_id, password,
68 self.verify_enrollment(user_id)
/external/selinux/secilc/docs/
Dcil_user_statements.md11 (user user_id)
26 <td align="left"><p><code>user_id</code></p></td>
47 (userrole user_id role_id)
62 <td align="left"><p><code>user_id</code></p></td>
125 (userattributeset userattribute_id (user_id ... | expr ...))
144 <td align="left"><p><code>user_id</code></p></td>
146 <p>Note that there must be at least one <code>user_id</code> or <code>expr</code> parameter declare…
151 <p><code> (and (user_id ...) (user_id ...))</code></p>
152 <p><code> (or (user_id ...) (user_id ...))</code></p>
153 <p><code> (xor (user_id ...) (user_id ...))</code></p>
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_thread_registry.cc20 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0), in ThreadContextBase()
43 user_id = 0; in SetDead()
52 user_id = 0; in SetJoined()
71 user_id = _user_id; in SetCreated()
121 u32 ThreadRegistry::CreateThread(uptr user_id, bool detached, u32 parent_tid, in CreateThread() argument
152 tctx->SetCreated(user_id, total_threads_++, detached, in CreateThread()
209 void ThreadRegistry::SetThreadNameByUserId(uptr user_id, const char *name) { in SetThreadNameByUserId() argument
213 if (tctx != 0 && tctx->user_id == user_id && in SetThreadNameByUserId()
/external/ltp/testcases/kernel/syscalls/getresgid/
Dgetresgid02.c141 struct passwd *user_id; /* passwd struct for test user */ in setup() local
153 if ((user_id = getpwnam(LTPUSER)) == NULL) { in setup()
158 pe_gid = user_id->pw_gid; in setup()
161 ps_gid = user_id->pw_gid; in setup()
Dgetresgid03.c144 struct passwd *user_id; /* passwd struct for test user */ in setup() local
159 if ((user_id = getpwnam("nobody")) == NULL) { in setup()
165 pe_gid = user_id->pw_gid; in setup()
/external/ltp/testcases/kernel/syscalls/getresuid/
Dgetresuid02.c138 struct passwd *user_id; /* passwd struct for test user */ in setup() local
150 if ((user_id = getpwnam(LTPUSER)) == NULL) { in setup()
155 pe_uid = user_id->pw_uid; in setup()
158 ps_uid = user_id->pw_uid; in setup()
Dgetresuid03.c139 struct passwd *user_id; /* passwd struct for test user */ in setup() local
154 if ((user_id = getpwnam("nobody")) == NULL) { in setup()
160 pe_uid = user_id->pw_uid; in setup()
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py38 def generate_token(key, user_id, action_id='', when=None): argument
53 digester.update(_helpers._to_bytes(str(user_id), encoding='utf-8'))
66 def validate_token(key, token, user_id, action_id="", current_time=None): argument
97 expected_token = generate_token(key, user_id, action_id=action_id,
/external/ltp/testcases/kernel/syscalls/fstat/
Dfstat02.c43 static uid_t user_id; variable
62 if (stat_buf.st_uid != user_id) { in verify()
64 stat_buf.st_uid, user_id); in verify()
142 user_id = getuid(); in setup()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat01.c44 static uid_t user_id; variable
62 if (stat_buf.st_uid != user_id) { in verify()
64 stat_buf.st_uid, user_id); in verify()
145 user_id = getuid(); in setup()
/external/autotest/client/site_tests/enterprise_RemoraRequisition/
Denterprise_RemoraRequisition.py21 user_id, password = utils.get_signin_credentials(os.path.join(
23 if not (user_id and password):
31 enrollment.RemoraEnrollment(cr.browser, user_id, password)
/external/ltp/testcases/kernel/syscalls/lstat/
Dlstat03.c52 static uid_t user_id; variable
80 if ((stat_buf.st_uid != user_id) || in main()
114 user_id = getuid(); in setup()
/external/autotest/database/
Dschema_129.sql80 `user_id` int(11) DEFAULT NULL,
82 UNIQUE KEY `acl_groups_users_both_ids` (`aclgroup_id`,`user_id`),
83 KEY `acl_groups_users_user_id` (`user_id`),
85 …CONSTRAINT `acl_groups_users_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `afe_users` (`id`) ON …
903 `user_id` int(11) NOT NULL,
906 UNIQUE KEY `user_id` (`user_id`,`group_id`),
907 KEY `auth_user_groups_6340c63c` (`user_id`),
909 CONSTRAINT `user_id_refs_id_40c41112` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
923 `user_id` int(11) NOT NULL,
926 UNIQUE KEY `user_id` (`user_id`,`permission_id`),
[all …]
/external/autotest/client/site_tests/enterprise_KioskEnrollment/
Denterprise_KioskEnrollment.py46 user_id, password = utils.get_signin_credentials(os.path.join(
49 if not (user_id and password):
55 enrollment.EnterpriseEnrollment(cr.browser, user_id, password)

123