Lines Matching defs:cred

39 struct cred;
148 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
155 extern int cap_capset(struct cred *new, const struct cred *old,
172 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
272 int security_binder_set_context_mgr(const struct cred *mgr);
273 int security_binder_transaction(const struct cred *from,
274 const struct cred *to);
275 int security_binder_transfer_binder(const struct cred *from,
276 const struct cred *to);
277 int security_binder_transfer_file(const struct cred *from,
278 const struct cred *to, const struct file *file);
285 int security_capset(struct cred *new, const struct cred *old,
289 int security_capable(const struct cred *cred,
335 const struct cred *old,
336 struct cred *new);
400 int security_inode_copy_up(struct dentry *src, struct cred **new);
427 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
428 void security_cred_free(struct cred *cred);
429 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
430 void security_transfer_creds(struct cred *new, const struct cred *old);
431 void security_cred_getsecid(const struct cred *c, u32 *secid);
432 int security_kernel_act_as(struct cred *new, u32 secid);
433 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
443 int security_task_fix_setuid(struct cred *new, const struct cred *old,
445 int security_task_fix_setgid(struct cred *new, const struct cred *old,
447 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
456 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
464 int sig, const struct cred *cred);
468 int security_create_user_ns(const struct cred *cred);
553 static inline int security_binder_set_context_mgr(const struct cred *mgr)
558 static inline int security_binder_transaction(const struct cred *from,
559 const struct cred *to)
564 static inline int security_binder_transfer_binder(const struct cred *from,
565 const struct cred *to)
570 static inline int security_binder_transfer_file(const struct cred *from,
571 const struct cred *to,
596 static inline int security_capset(struct cred *new,
597 const struct cred *old,
605 static inline int security_capable(const struct cred *cred,
610 return cap_capable(cred, ns, cap, opts);
792 const struct cred *old,
793 struct cred *new)
1008 static inline int security_inode_copy_up(struct dentry *src, struct cred **new)
1123 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
1128 static inline void security_cred_free(struct cred *cred)
1131 static inline int security_prepare_creds(struct cred *new,
1132 const struct cred *old,
1138 static inline void security_transfer_creds(struct cred *new,
1139 const struct cred *old)
1143 static inline void security_cred_getsecid(const struct cred *c, u32 *secid)
1148 static inline int security_kernel_act_as(struct cred *cred, u32 secid)
1153 static inline int security_kernel_create_files_as(struct cred *cred,
1190 static inline int security_task_fix_setuid(struct cred *new,
1191 const struct cred *old,
1197 static inline int security_task_fix_setgid(struct cred *new,
1198 const struct cred *old,
1204 static inline int security_task_fix_setgroups(struct cred *new,
1205 const struct cred *old)
1250 static inline int security_task_prlimit(const struct cred *cred,
1251 const struct cred *tcred,
1281 const struct cred *cred)
1297 static inline int security_create_user_ns(const struct cred *cred)
1489 int security_post_notification(const struct cred *w_cred,
1490 const struct cred *cred,
1493 static inline int security_post_notification(const struct cred *w_cred,
1494 const struct cred *cred,
2003 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
2005 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
2015 const struct cred *cred,
2026 const struct cred *cred,
2239 extern int security_uring_override_creds(const struct cred *new);
2243 static inline int security_uring_override_creds(const struct cred *new)