Lines Matching defs:cred
252 static int smk_bu_credfile(const struct cred *cred, struct file *file,
255 struct task_smack *tsp = smack_cred(cred);
278 #define smk_bu_credfile(cred, file, mode, RC) (RC)
435 const struct cred *tracercred;
911 * smack_bprm_creds_for_exec - Update bprm->cred if needed for exec
919 struct task_smack *bsp = smack_cred(bprm->cred);
1026 * should have overridden the current cred, so the
1910 struct smack_known *tkp = smk_of_task(smack_cred(tsk->cred));
1911 const struct cred *tcred;
2024 * @cred: the new credentials
2031 static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp)
2033 init_task_smack(smack_cred(cred), NULL, NULL);
2040 * @cred: the credentials in question
2043 static void smack_cred_free(struct cred *cred)
2045 struct task_smack *tsp = smack_cred(cred);
2067 static int smack_cred_prepare(struct cred *new, const struct cred *old,
2092 static void smack_cred_transfer(struct cred *new, const struct cred *old)
2107 * @cred: the object creds
2112 static void smack_cred_getsecid(const struct cred *cred, u32 *secid)
2117 skp = smk_of_task(smack_cred(cred));
2129 static int smack_kernel_act_as(struct cred *new, u32 secid)
2145 static int smack_kernel_create_files_as(struct cred *new,
2312 * @cred: identifies the cred to use in lieu of current's
2318 int sig, const struct cred *cred)
2334 if (cred == NULL) {
2340 * If the cred isn't NULL we're dealing with some USB IO
2344 skp = smk_of_task(smack_cred(cred));
3680 struct cred *new;
4396 * @cred: the credentials to use
4403 static int smack_key_alloc(struct key *key, const struct cred *cred,
4406 struct smack_known *skp = smk_of_task(smack_cred(cred));
4426 * @cred: the credentials to use
4433 const struct cred *cred,
4438 struct smack_known *tkp = smk_of_task(smack_cred(cred));
4529 * Return 0 if the @watch->cred has permission to read from the key object and
4571 * @cred: The credentials of the event source (may be NULL).
4574 static int smack_post_notification(const struct cred *w_cred,
4575 const struct cred *cred,
4586 if (!cred)
4588 subj = smk_of_task(smack_cred(cred));
4786 static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)
4792 struct cred *new_creds = *new;
4825 const struct cred *old,
4826 struct cred *new)
4866 * smack_uring_override_creds - Is io_uring cred override allowed?
4872 static int smack_uring_override_creds(const struct cred *new)
5138 struct cred *cred = (struct cred *) current->cred;
5148 tsp = smack_cred(cred);