Lines Matching refs:cred

278 static void __init lsm_early_cred(struct cred *cred);
321 lsm_early_cred((struct cred *) current->cred); in ordered_lsm_init()
493 static int lsm_cred_alloc(struct cred *cred, gfp_t gfp) in lsm_cred_alloc() argument
496 cred->security = NULL; in lsm_cred_alloc()
500 cred->security = kzalloc(blob_sizes.lbs_cred, gfp); in lsm_cred_alloc()
501 if (cred->security == NULL) in lsm_cred_alloc()
512 static void __init lsm_early_cred(struct cred *cred) in lsm_early_cred() argument
514 int rc = lsm_cred_alloc(cred, GFP_KERNEL); in lsm_early_cred()
692 int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
697 int security_binder_transaction(const struct cred *from, in security_binder_transaction()
698 const struct cred *to) in security_binder_transaction()
703 int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
704 const struct cred *to) in security_binder_transfer_binder()
709 int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
710 const struct cred *to, struct file *file) in security_binder_transfer_file()
734 int security_capset(struct cred *new, const struct cred *old, in security_capset()
743 int security_capable(const struct cred *cred, in security_capable() argument
748 return call_int_hook(capable, 0, cred, ns, cap, opts); in security_capable()
999 const struct cred *old, struct cred *new) in security_dentry_create_files_as()
1398 int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1590 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1592 int rc = lsm_cred_alloc(cred, gfp); in security_cred_alloc_blank()
1597 rc = call_int_hook(cred_alloc_blank, 0, cred, gfp); in security_cred_alloc_blank()
1599 security_cred_free(cred); in security_cred_alloc_blank()
1603 void security_cred_free(struct cred *cred) in security_cred_free() argument
1609 if (unlikely(cred->security == NULL)) in security_cred_free()
1612 call_void_hook(cred_free, cred); in security_cred_free()
1614 kfree(cred->security); in security_cred_free()
1615 cred->security = NULL; in security_cred_free()
1618 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp) in security_prepare_creds()
1631 void security_transfer_creds(struct cred *new, const struct cred *old) in security_transfer_creds()
1636 void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1643 int security_kernel_act_as(struct cred *new, u32 secid) in security_kernel_act_as()
1648 int security_kernel_create_files_as(struct cred *new, struct inode *inode) in security_kernel_create_files_as()
1712 int security_task_fix_setuid(struct cred *new, const struct cred *old, in security_task_fix_setuid()
1718 int security_task_fix_setgid(struct cred *new, const struct cred *old, in security_task_fix_setgid()
1761 int security_task_prlimit(const struct cred *cred, const struct cred *tcred, in security_task_prlimit() argument
1764 return call_int_hook(task_prlimit, 0, cred, tcred, flags); in security_task_prlimit()
1789 int sig, const struct cred *cred) in security_task_kill() argument
1791 return call_int_hook(task_kill, 0, p, info, sig, cred); in security_task_kill()
2059 int security_post_notification(const struct cred *w_cred, in security_post_notification()
2060 const struct cred *cred, in security_post_notification() argument
2063 return call_int_hook(post_notification, 0, w_cred, cred, n); in security_post_notification()
2439 int security_key_alloc(struct key *key, const struct cred *cred, in security_key_alloc() argument
2442 return call_int_hook(key_alloc, 0, key, cred, flags); in security_key_alloc()
2450 int security_key_permission(key_ref_t key_ref, const struct cred *cred, in security_key_permission() argument
2453 return call_int_hook(key_permission, 0, key_ref, cred, need_perm); in security_key_permission()