Lines Matching defs:cred
240 static int smk_bu_credfile(const struct cred *cred, struct file *file,
243 struct task_smack *tsp = smack_cred(cred);
266 #define smk_bu_credfile(cred, file, mode, RC) (RC)
423 const struct cred *tracercred;
891 * smack_bprm_creds_for_exec - Update bprm->cred if needed for exec
899 struct task_smack *bsp = smack_cred(bprm->cred);
1008 * should have overridden the current cred, so the
1805 struct smack_known *tkp = smk_of_task(smack_cred(tsk->cred));
1806 const struct cred *tcred;
1919 * @cred: the new credentials
1926 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp)
1928 init_task_smack(smack_cred(cred), NULL, NULL);
1935 * @cred: the credentials in question
1938 static void smack_cred_free(struct cred *cred)
1940 struct task_smack *tsp = smack_cred(cred);
1962 static int smack_cred_prepare(struct cred *new, const struct cred *old,
1987 static void smack_cred_transfer(struct cred *new, const struct cred *old)
2002 * @cred: the object creds
2007 static void smack_cred_getsecid(const struct cred *cred, u32 *secid)
2012 skp = smk_of_task(smack_cred(cred));
2024 static int smack_kernel_act_as(struct cred *new, u32 secid)
2040 static int smack_kernel_create_files_as(struct cred *new,
2194 * @cred: identifies the cred to use in lieu of current's
2200 int sig, const struct cred *cred)
2216 if (cred == NULL) {
2222 * If the cred isn't NULL we're dealing with some USB IO
2226 skp = smk_of_task(smack_cred(cred));
3543 struct cred *new;
4259 * @cred: the credentials to use
4266 static int smack_key_alloc(struct key *key, const struct cred *cred,
4269 struct smack_known *skp = smk_of_task(smack_cred(cred));
4289 * @cred: the credentials to use
4296 const struct cred *cred,
4301 struct smack_known *tkp = smk_of_task(smack_cred(cred));
4392 * Return 0 if the @watch->cred has permission to read from the key object and
4434 * @cred: The credentials of the event source (may be NULL).
4437 static int smack_post_notification(const struct cred *w_cred,
4438 const struct cred *cred,
4449 if (!cred)
4451 subj = smk_of_task(smack_cred(cred));
4647 static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)
4653 struct cred *new_creds = *new;
4686 const struct cred *old,
4687 struct cred *new)
4915 struct cred *cred = (struct cred *) current->cred;
4925 tsp = smack_cred(cred);