Lines Matching refs:cred
18 static int tomoyo_cred_alloc_blank(struct cred *new, gfp_t gfp) in tomoyo_cred_alloc_blank()
33 static int tomoyo_cred_prepare(struct cred *new, const struct cred *old, in tomoyo_cred_prepare()
49 static void tomoyo_cred_transfer(struct cred *new, const struct cred *old) in tomoyo_cred_transfer()
59 static void tomoyo_cred_free(struct cred *cred) in tomoyo_cred_free() argument
61 struct tomoyo_domain_info *domain = cred->security; in tomoyo_cred_free()
102 bprm->cred->security)->users); in tomoyo_bprm_set_creds()
107 bprm->cred->security = NULL; in tomoyo_bprm_set_creds()
120 struct tomoyo_domain_info *domain = bprm->cred->security; in tomoyo_bprm_check_security()
328 static int tomoyo_file_open(struct file *f, const struct cred *cred) in tomoyo_file_open() argument
547 struct cred *cred = (struct cred *) current_cred(); in tomoyo_init() local
555 cred->security = &tomoyo_kernel_domain; in tomoyo_init()