Lines Matching refs:cred
213 static int smk_bu_credfile(const struct cred *cred, struct file *file, in smk_bu_credfile() argument
216 struct task_smack *tsp = cred->security; in smk_bu_credfile()
239 #define smk_bu_credfile(cred, file, mode, RC) (RC) argument
718 struct task_smack *bsp = bprm->cred->security; in smack_bprm_set_creds()
765 struct task_smack *bsp = bprm->cred->security; in smack_bprm_committing_creds()
1638 struct smack_known *tkp = smk_of_task(tsk->cred->security); in smack_file_send_sigiotask()
1701 static int smack_file_open(struct file *file, const struct cred *cred) in smack_file_open() argument
1703 struct task_smack *tsp = cred->security; in smack_file_open()
1714 rc = smk_bu_credfile(cred, file, MAY_READ, rc); in smack_file_open()
1732 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank() argument
1740 cred->security = tsp; in smack_cred_alloc_blank()
1751 static void smack_cred_free(struct cred *cred) in smack_cred_free() argument
1753 struct task_smack *tsp = cred->security; in smack_cred_free()
1760 cred->security = NULL; in smack_cred_free()
1778 static int smack_cred_prepare(struct cred *new, const struct cred *old, in smack_cred_prepare()
1804 static void smack_cred_transfer(struct cred *new, const struct cred *old) in smack_cred_transfer()
1825 static int smack_kernel_act_as(struct cred *new, u32 secid) in smack_kernel_act_as()
1845 static int smack_kernel_create_files_as(struct cred *new, in smack_kernel_create_files_as()
3310 struct cred *new; in smack_setprocattr()
3971 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc() argument
3974 struct smack_known *skp = smk_of_task(cred->security); in smack_key_alloc()
4001 const struct cred *cred, unsigned perm) in smack_key_permission() argument
4005 struct smack_known *tkp = smk_of_task(cred->security); in smack_key_permission()
4449 struct cred *cred; in smack_init() local
4473 cred = (struct cred *) current->cred; in smack_init()
4474 cred->security = tsp; in smack_init()