Lines Matching refs:s
18 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_domain() local
20 if (s->old_domain_info && !current->in_execve) { in tomoyo_domain()
21 atomic_dec(&s->old_domain_info->users); in tomoyo_domain()
22 s->old_domain_info = NULL; in tomoyo_domain()
24 return s->domain_info; in tomoyo_domain()
40 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_cred_prepare() local
42 if (s->old_domain_info && !current->in_execve) { in tomoyo_cred_prepare()
43 atomic_dec(&s->domain_info->users); in tomoyo_cred_prepare()
44 s->domain_info = s->old_domain_info; in tomoyo_cred_prepare()
45 s->old_domain_info = NULL; in tomoyo_cred_prepare()
58 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_bprm_committed_creds() local
60 atomic_dec(&s->old_domain_info->users); in tomoyo_bprm_committed_creds()
61 s->old_domain_info = NULL; in tomoyo_bprm_committed_creds()
99 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_bprm_check_security() local
105 if (!s->old_domain_info) { in tomoyo_bprm_check_security()
115 return tomoyo_check_open_permission(s->domain_info, in tomoyo_bprm_check_security()
520 struct tomoyo_task *s = tomoyo_task(task); in tomoyo_task_free() local
522 if (s->domain_info) { in tomoyo_task_free()
523 atomic_dec(&s->domain_info->users); in tomoyo_task_free()
524 s->domain_info = NULL; in tomoyo_task_free()
526 if (s->old_domain_info) { in tomoyo_task_free()
527 atomic_dec(&s->old_domain_info->users); in tomoyo_task_free()
528 s->old_domain_info = NULL; in tomoyo_task_free()
581 struct tomoyo_task *s = tomoyo_task(current); in tomoyo_init() local
586 s->domain_info = &tomoyo_kernel_domain; in tomoyo_init()
588 s->old_domain_info = NULL; in tomoyo_init()