Lines Matching refs:cred

36 struct cred;
142 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
148 extern int cap_capset(struct cred *new, const struct cred *old,
166 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
265 int security_binder_set_context_mgr(const struct cred *mgr);
266 int security_binder_transaction(const struct cred *from,
267 const struct cred *to);
268 int security_binder_transfer_binder(const struct cred *from,
269 const struct cred *to);
270 int security_binder_transfer_file(const struct cred *from,
271 const struct cred *to, struct file *file);
278 int security_capset(struct cred *new, const struct cred *old,
282 int security_capable(const struct cred *cred,
327 const struct cred *old,
328 struct cred *new);
379 int security_inode_copy_up(struct dentry *src, struct cred **new);
401 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
402 void security_cred_free(struct cred *cred);
403 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
404 void security_transfer_creds(struct cred *new, const struct cred *old);
405 void security_cred_getsecid(const struct cred *c, u32 *secid);
406 int security_kernel_act_as(struct cred *new, u32 secid);
407 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
417 int security_task_fix_setuid(struct cred *new, const struct cred *old,
419 int security_task_fix_setgid(struct cred *new, const struct cred *old,
421 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
430 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
438 int sig, const struct cred *cred);
442 int security_create_user_ns(const struct cred *cred);
517 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
522 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
523 const struct cred *to) in security_binder_transaction()
528 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
529 const struct cred *to) in security_binder_transfer_binder()
534 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
535 const struct cred *to, in security_binder_transfer_file()
560 static inline int security_capset(struct cred *new, in security_capset()
561 const struct cred *old, in security_capset()
569 static inline int security_capable(const struct cred *cred, in security_capable() argument
574 return cap_capable(cred, ns, cap, opts); in security_capable()
751 const struct cred *old, in security_dentry_create_files_as()
752 struct cred *new) in security_dentry_create_files_as()
931 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1026 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1031 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1034 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1035 const struct cred *old, in security_prepare_creds()
1041 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1042 const struct cred *old) in security_transfer_creds()
1046 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1051 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1056 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1093 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1094 const struct cred *old, in security_task_fix_setuid()
1100 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1101 const struct cred *old, in security_task_fix_setgid()
1107 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1108 const struct cred *old) in security_task_fix_setgroups()
1153 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1154 const struct cred *tcred, in security_task_prlimit()
1184 const struct cred *cred) in security_task_kill() argument
1200 static inline int security_create_user_ns(const struct cred *cred) in security_create_user_ns() argument
1372 int security_post_notification(const struct cred *w_cred,
1373 const struct cred *cred,
1376 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1377 const struct cred *cred, in security_post_notification() argument
1872 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1874 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1881 const struct cred *cred, in security_key_alloc() argument
1892 const struct cred *cred, in security_key_permission() argument
2069 extern int security_uring_override_creds(const struct cred *new);
2073 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()