Lines Matching refs:cred
36 struct cred;
140 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
146 extern int cap_capset(struct cred *new, const struct cred *old,
164 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
263 int security_binder_set_context_mgr(const struct cred *mgr);
264 int security_binder_transaction(const struct cred *from,
265 const struct cred *to);
266 int security_binder_transfer_binder(const struct cred *from,
267 const struct cred *to);
268 int security_binder_transfer_file(const struct cred *from,
269 const struct cred *to, struct file *file);
276 int security_capset(struct cred *new, const struct cred *old,
280 int security_capable(const struct cred *cred,
325 const struct cred *old,
326 struct cred *new);
376 int security_inode_copy_up(struct dentry *src, struct cred **new);
398 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
399 void security_cred_free(struct cred *cred);
400 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
401 void security_transfer_creds(struct cred *new, const struct cred *old);
402 void security_cred_getsecid(const struct cred *c, u32 *secid);
403 int security_kernel_act_as(struct cred *new, u32 secid);
404 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
414 int security_task_fix_setuid(struct cred *new, const struct cred *old,
416 int security_task_fix_setgid(struct cred *new, const struct cred *old,
426 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
434 int sig, const struct cred *cred);
512 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
517 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
518 const struct cred *to) in security_binder_transaction()
523 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
524 const struct cred *to) in security_binder_transfer_binder()
529 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
530 const struct cred *to, in security_binder_transfer_file()
555 static inline int security_capset(struct cred *new, in security_capset()
556 const struct cred *old, in security_capset()
564 static inline int security_capable(const struct cred *cred, in security_capable() argument
569 return cap_capable(cred, ns, cap, opts); in security_capable()
746 const struct cred *old, in security_dentry_create_files_as()
747 struct cred *new) in security_dentry_create_files_as()
925 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1020 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1025 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1028 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1029 const struct cred *old, in security_prepare_creds()
1035 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1036 const struct cred *old) in security_transfer_creds()
1040 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1045 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1050 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1087 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1088 const struct cred *old, in security_task_fix_setuid()
1094 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1095 const struct cred *old, in security_task_fix_setgid()
1141 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1142 const struct cred *tcred, in security_task_prlimit()
1172 const struct cred *cred) in security_task_kill() argument
1355 int security_post_notification(const struct cred *w_cred,
1356 const struct cred *cred,
1359 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1360 const struct cred *cred, in security_post_notification() argument
1855 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1857 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1864 const struct cred *cred, in security_key_alloc() argument
1875 const struct cred *cred, in security_key_permission() argument
2052 extern int security_uring_override_creds(const struct cred *new);
2056 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()