Lines Matching refs:cred
241 static int smk_bu_credfile(const struct cred *cred, struct file *file, in smk_bu_credfile() argument
244 struct task_smack *tsp = smack_cred(cred); in smk_bu_credfile()
267 #define smk_bu_credfile(cred, file, mode, RC) (RC) argument
426 const struct cred *tracercred; in smk_ptrace_rule_check()
907 struct task_smack *bsp = smack_cred(bprm->cred); in smack_bprm_set_creds()
1817 struct smack_known *tkp = smk_of_task(smack_cred(tsk->cred)); in smack_file_send_sigiotask()
1818 const struct cred *tcred; in smack_file_send_sigiotask()
1938 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp) in smack_cred_alloc_blank() argument
1940 init_task_smack(smack_cred(cred), NULL, NULL); in smack_cred_alloc_blank()
1950 static void smack_cred_free(struct cred *cred) in smack_cred_free() argument
1952 struct task_smack *tsp = smack_cred(cred); in smack_cred_free()
1974 static int smack_cred_prepare(struct cred *new, const struct cred *old, in smack_cred_prepare()
1999 static void smack_cred_transfer(struct cred *new, const struct cred *old) in smack_cred_transfer()
2019 static void smack_cred_getsecid(const struct cred *cred, u32 *secid) in smack_cred_getsecid() argument
2024 skp = smk_of_task(smack_cred(cred)); in smack_cred_getsecid()
2036 static int smack_kernel_act_as(struct cred *new, u32 secid) in smack_kernel_act_as()
2052 static int smack_kernel_create_files_as(struct cred *new, in smack_kernel_create_files_as()
2212 int sig, const struct cred *cred) in smack_task_kill() argument
2228 if (cred == NULL) { in smack_task_kill()
2238 skp = smk_of_task(smack_cred(cred)); in smack_task_kill()
3552 struct cred *new; in smack_setprocattr()
4246 static int smack_key_alloc(struct key *key, const struct cred *cred, in smack_key_alloc() argument
4249 struct smack_known *skp = smk_of_task(smack_cred(cred)); in smack_key_alloc()
4276 const struct cred *cred, unsigned perm) in smack_key_permission() argument
4280 struct smack_known *tkp = smk_of_task(smack_cred(cred)); in smack_key_permission()
4305 if (smack_privileged_cred(CAP_MAC_OVERRIDE, cred)) in smack_key_permission()
4539 static int smack_inode_copy_up(struct dentry *dentry, struct cred **new) in smack_inode_copy_up()
4545 struct cred *new_creds = *new; in smack_inode_copy_up()
4578 const struct cred *old, in smack_dentry_create_files_as()
4579 struct cred *new) in smack_dentry_create_files_as()
4800 struct cred *cred = (struct cred *) current->cred; in smack_init() local
4816 tsp = smack_cred(cred); in smack_init()