Lines Matching refs:cred
37 struct cred;
143 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
150 extern int cap_capset(struct cred *new, const struct cred *old,
167 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
266 int security_binder_set_context_mgr(const struct cred *mgr);
267 int security_binder_transaction(const struct cred *from,
268 const struct cred *to);
269 int security_binder_transfer_binder(const struct cred *from,
270 const struct cred *to);
271 int security_binder_transfer_file(const struct cred *from,
272 const struct cred *to, const struct file *file);
279 int security_capset(struct cred *new, const struct cred *old,
283 int security_capable(const struct cred *cred,
329 const struct cred *old,
330 struct cred *new);
384 int security_inode_copy_up(struct dentry *src, struct cred **new);
407 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
408 void security_cred_free(struct cred *cred);
409 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
410 void security_transfer_creds(struct cred *new, const struct cred *old);
411 void security_cred_getsecid(const struct cred *c, u32 *secid);
412 int security_kernel_act_as(struct cred *new, u32 secid);
413 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
423 int security_task_fix_setuid(struct cred *new, const struct cred *old,
425 int security_task_fix_setgid(struct cred *new, const struct cred *old,
427 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
436 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
444 int sig, const struct cred *cred);
448 int security_create_user_ns(const struct cred *cred);
523 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
528 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
529 const struct cred *to) in security_binder_transaction()
534 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
535 const struct cred *to) in security_binder_transfer_binder()
540 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
541 const struct cred *to, in security_binder_transfer_file()
566 static inline int security_capset(struct cred *new, in security_capset()
567 const struct cred *old, in security_capset()
575 static inline int security_capable(const struct cred *cred, in security_capable() argument
580 return cap_capable(cred, ns, cap, opts); in security_capable()
762 const struct cred *old, in security_dentry_create_files_as()
763 struct cred *new) in security_dentry_create_files_as()
955 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1055 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1060 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1063 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1064 const struct cred *old, in security_prepare_creds()
1070 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1071 const struct cred *old) in security_transfer_creds()
1075 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1080 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1085 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1122 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1123 const struct cred *old, in security_task_fix_setuid()
1129 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1130 const struct cred *old, in security_task_fix_setgid()
1136 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1137 const struct cred *old) in security_task_fix_setgroups()
1182 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1183 const struct cred *tcred, in security_task_prlimit()
1213 const struct cred *cred) in security_task_kill() argument
1229 static inline int security_create_user_ns(const struct cred *cred) in security_create_user_ns() argument
1401 int security_post_notification(const struct cred *w_cred,
1402 const struct cred *cred,
1405 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1406 const struct cred *cred, in security_post_notification() argument
1910 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1912 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1919 const struct cred *cred, in security_key_alloc() argument
1930 const struct cred *cred, in security_key_permission() argument
2107 extern int security_uring_override_creds(const struct cred *new);
2111 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()