/kernel/linux/build/test/fuzztest/accesstokenid/src/ |
H A D | accesstokenidcommon.cpp | 183 int GetfTokenid(unsigned long long *ftoken) in GetfTokenid() argument 190 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, ftoken); in GetfTokenid() 200 int SetfTokenid(unsigned long long *ftoken) in SetfTokenid() argument 207 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, ftoken); in SetfTokenid() 221 unsigned long long ftoken = INVAL_TOKEN; in SetRandfTokenAndCheck() local 225 GetfTokenid(&ftoken); in SetRandfTokenAndCheck() 227 if (ftoken != ftokenSet) { in SetRandfTokenAndCheck() 228 printf("pid:%d tid:%d ftoken test failed, ftoken:%llu ftokenSet:%llu\n", in SetRandfTokenAndCheck() 229 pid, tid, ftoken, ftokenSe in SetRandfTokenAndCheck() [all...] |
/kernel/linux/build/test/unittest/accesstokenid/ |
H A D | accesstokenid_test.cpp | 124 static int GetfTokenid(unsigned long long *ftoken) in GetfTokenid() argument 132 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, ftoken); in GetfTokenid() 143 static int SetfTokenid(unsigned long long *ftoken) in SetfTokenid() argument 151 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, ftoken); in SetfTokenid() 162 static void GetCurToken(unsigned long long *token, unsigned long long *ftoken) in GetCurToken() argument 165 GetfTokenid(ftoken); in GetCurToken() 231 unsigned long long ftoken = INVAL_TOKEN; in HWTEST_F() local 233 GetCurToken(&token, &ftoken); in HWTEST_F() 239 ASSERT_EQ(0, ftoken); in HWTEST_F() 267 unsigned long long ftoken in HWTEST_F() local 287 unsigned long long ftoken = INVAL_TOKEN; HWTEST_F() local 329 unsigned long long ftoken = INVAL_TOKEN; HWTEST_F() local 561 unsigned long long ftoken = INVAL_TOKEN; HWTEST_F() local 621 unsigned long long ftoken = INVAL_TOKEN; HWTEST_F() local [all...] |
/kernel/linux/build/test/fuzztest/accesstokenid/include/ |
H A D | accesstokenidcommon.h | 62 int GetfTokenid(unsigned long long *ftoken); 63 int SetfTokenid(unsigned long long *ftoken); 75 void GetCurfToken(unsigned long long *ftoken);
|
/kernel/linux/linux-5.10/drivers/accesstokenid/ |
H A D | access_tokenid.c | 104 return copy_to_user(uarg, ¤t->ftoken, in access_tokenid_get_ftokenid() 105 sizeof(current->ftoken)) ? -EFAULT : 0; in access_tokenid_get_ftokenid() 118 current->ftoken = tmp; in access_tokenid_set_ftokenid()
|
/kernel/linux/linux-6.6/drivers/accesstokenid/ |
H A D | access_tokenid.c | 104 return copy_to_user(uarg, ¤t->ftoken, in access_tokenid_get_ftokenid() 105 sizeof(current->ftoken)) ? -EFAULT : 0; in access_tokenid_get_ftokenid() 118 current->ftoken = tmp; in access_tokenid_set_ftokenid()
|
/kernel/linux/linux-5.10/drivers/android/ |
H A D | binder.c | 3465 t->first_tokenid = current->ftoken; in binder_transaction() 5607 u64 token, ftoken; in binder_ioctl() local 5615 ftoken = thread->tokens.first_tokenid; in binder_ioctl() 5621 if (put_user(ftoken, &tokens->first_tokenid)) { in binder_ioctl() 5632 u64 token, ftoken, sender_pid_nr; in binder_ioctl() local 5640 ftoken = thread->tokens.first_tokenid; in binder_ioctl() 5649 if (put_user(ftoken, &sender->tokens.first_tokenid)) { in binder_ioctl()
|
/kernel/linux/linux-6.6/drivers/android/ |
H A D | binder.c | 3248 t->first_tokenid = current->ftoken; in binder_transaction() 5651 u64 token, ftoken; in binder_ioctl() local 5659 ftoken = thread->tokens.first_tokenid; in binder_ioctl() 5665 if (put_user(ftoken, &tokens->first_tokenid)) { in binder_ioctl() 5676 u64 token, ftoken, sender_pid_nr; in binder_ioctl() local 5684 ftoken = thread->tokens.first_tokenid; in binder_ioctl() 5693 if (put_user(ftoken, &sender->tokens.first_tokenid)) { in binder_ioctl()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | sched.h | 1509 u64 ftoken; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | sched.h | 1659 u64 ftoken; member
|
/kernel/linux/linux-5.10/kernel/ |
H A D | fork.c | 898 tsk->ftoken = 0; in dup_task_struct()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | fork.c | 1129 tsk->ftoken = 0; in dup_task_struct()
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | base.c | 3389 seq_printf(m, "%#llx %#llx\n", task->token, task->ftoken); in proc_token_operations()
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | base.c | 3417 seq_printf(m, "%#llx %#llx\n", task->token, task->ftoken); in proc_token_operations()
|