Lines Matching full:tsp

140 	struct task_smack *tsp = smack_cred(current_cred());  in smk_bu_current()  local
150 tsp->smk_task->smk_known, oskp->smk_known, in smk_bu_current()
161 struct task_smack *tsp = smack_cred(current_cred()); in smk_bu_task() local
172 tsp->smk_task->smk_known, smk_task->smk_known, acc, in smk_bu_task()
183 struct task_smack *tsp = smack_cred(current_cred()); in smk_bu_inode() local
202 tsp->smk_task->smk_known, isp->smk_inode->smk_known, acc, in smk_bu_inode()
213 struct task_smack *tsp = smack_cred(current_cred()); in smk_bu_file() local
214 struct smack_known *sskp = tsp->smk_task; in smk_bu_file()
243 struct task_smack *tsp = smack_cred(cred); in smk_bu_credfile() local
244 struct smack_known *sskp = tsp->smk_task; in smk_bu_credfile()
321 * @tsp: blob to initialize
326 static void init_task_smack(struct task_smack *tsp, struct smack_known *task, in init_task_smack() argument
329 tsp->smk_task = task; in init_task_smack()
330 tsp->smk_forked = forked; in init_task_smack()
331 INIT_LIST_HEAD(&tsp->smk_rules); in init_task_smack()
332 INIT_LIST_HEAD(&tsp->smk_relabel); in init_task_smack()
333 mutex_init(&tsp->smk_rules_lock); in init_task_smack()
421 struct task_smack *tsp; in smk_ptrace_rule_check() local
433 tsp = smack_cred(tracercred); in smk_ptrace_rule_check()
434 tracer_known = smk_of_task(tsp); in smk_ptrace_rule_check()
458 rc = smk_tskacc(tsp, tracee_known, smk_ptrace_mode(mode), saip); in smk_ptrace_rule_check()
1653 struct task_smack *tsp; in smack_mmap_file() local
1677 tsp = smack_cred(current_cred()); in smack_mmap_file()
1700 &tsp->smk_rules); in smack_mmap_file()
1728 &tsp->smk_rules); in smack_mmap_file()
1818 struct task_smack *tsp; in smack_file_receive() local
1830 tsp = smack_cred(current_cred()); in smack_file_receive()
1837 rc = smk_access(tsp->smk_task, ssp->smk_out, MAY_WRITE, &ad); in smack_file_receive()
1841 rc = smk_access(ssp->smk_in, tsp->smk_task, MAY_WRITE, &ad); in smack_file_receive()
1871 struct task_smack *tsp = smack_cred(file->f_cred); in smack_file_open() local
1878 rc = smk_tskacc(tsp, smk_of_inode(inode), MAY_READ, &ad); in smack_file_open()
1911 struct task_smack *tsp = smack_cred(cred); in smack_cred_free() local
1916 smk_destroy_label_list(&tsp->smk_relabel); in smack_cred_free()
1918 list_for_each_safe(l, n, &tsp->smk_rules) { in smack_cred_free()
2015 struct task_smack *tsp = smack_cred(new); in smack_kernel_create_files_as() local
2017 tsp->smk_forked = isp->smk_inode; in smack_kernel_create_files_as()
2018 tsp->smk_task = tsp->smk_forked; in smack_kernel_create_files_as()
3513 struct task_smack *tsp = smack_cred(current_cred()); in smack_setprocattr() local
3519 if (!smack_privileged(CAP_MAC_ADMIN) && list_empty(&tsp->smk_relabel)) in smack_setprocattr()
3541 list_for_each_entry(sklep, &tsp->smk_relabel, list) in smack_setprocattr()
3554 tsp = smack_cred(new); in smack_setprocattr()
3555 tsp->smk_task = skp; in smack_setprocattr()
3559 smk_destroy_label_list(&tsp->smk_relabel); in smack_setprocattr()
4621 struct task_smack *tsp; in smack_inode_copy_up() local
4632 tsp = smack_cred(new_creds); in smack_inode_copy_up()
4639 tsp->smk_task = skp; in smack_inode_copy_up()
4884 struct task_smack *tsp; in smack_init() local
4893 tsp = smack_cred(cred); in smack_init()
4894 init_task_smack(tsp, &smack_known_floor, &smack_known_floor); in smack_init()