Lines Matching refs:cred
223 static int smk_bu_credfile(const struct cred *cred, struct file *file, in smk_bu_credfile() argument
226 struct task_smack *tsp = cred->security; in smk_bu_credfile()
249 #define smk_bu_credfile(cred, file, mode, RC) (RC) argument
909 struct task_smack *bsp = bprm->cred->security; in smack_bprm_set_creds()
952 struct task_smack *bsp = bprm->cred->security; in smack_bprm_committing_creds()
1826 struct smack_known *tkp = smk_of_task(tsk->cred->security); in smack_file_send_sigiotask()
1892 static int smack_file_open(struct file *file, const struct cred *cred) in smack_file_open() argument
1894 struct task_smack *tsp = cred->security; in smack_file_open()
1905 rc = smk_bu_credfile(cred, file, MAY_READ, rc); in smack_file_open()
1923 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank() argument
1931 cred->security = tsp; in smack_cred_alloc_blank()
1942 static void smack_cred_free(struct cred *cred) in smack_cred_free() argument
1944 struct task_smack *tsp = cred->security; in smack_cred_free()
1951 cred->security = NULL; in smack_cred_free()
1971 static int smack_cred_prepare(struct cred *new, const struct cred *old, in smack_cred_prepare()
2002 static void smack_cred_transfer(struct cred *new, const struct cred *old) in smack_cred_transfer()
2023 static int smack_kernel_act_as(struct cred *new, u32 secid) in smack_kernel_act_as()
2043 static int smack_kernel_create_files_as(struct cred *new, in smack_kernel_create_files_as()
3591 struct cred *new; in smack_setprocattr()
4280 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc() argument
4283 struct smack_known *skp = smk_of_task(cred->security); in smack_key_alloc()
4310 const struct cred *cred, unsigned perm) in smack_key_permission() argument
4314 struct smack_known *tkp = smk_of_task(cred->security); in smack_key_permission()
4760 struct cred *cred; in smack_init() local
4793 cred = (struct cred *) current->cred; in smack_init()
4794 cred->security = tsp; in smack_init()