Lines Matching refs:cred
43 struct cred;
174 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
181 extern int cap_capset(struct cred *new, const struct cred *old,
198 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
334 int security_binder_set_context_mgr(const struct cred *mgr);
335 int security_binder_transaction(const struct cred *from,
336 const struct cred *to);
337 int security_binder_transfer_binder(const struct cred *from,
338 const struct cred *to);
339 int security_binder_transfer_file(const struct cred *from,
340 const struct cred *to, const struct file *file);
347 int security_capset(struct cred *new, const struct cred *old,
351 int security_capable(const struct cred *cred,
397 const struct cred *old,
398 struct cred *new);
462 int security_inode_copy_up(struct dentry *src, struct cred **new);
492 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
493 void security_cred_free(struct cred *cred);
494 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
495 void security_transfer_creds(struct cred *new, const struct cred *old);
496 void security_cred_getsecid(const struct cred *c, u32 *secid);
497 void security_cred_getlsmprop(const struct cred *c, struct lsm_prop *prop);
498 int security_kernel_act_as(struct cred *new, u32 secid);
499 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
509 int security_task_fix_setuid(struct cred *new, const struct cred *old,
511 int security_task_fix_setgid(struct cred *new, const struct cred *old,
513 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
522 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
530 int sig, const struct cred *cred);
534 int security_create_user_ns(const struct cred *cred);
636 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
641 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
642 const struct cred *to) in security_binder_transaction()
647 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
648 const struct cred *to) in security_binder_transfer_binder()
653 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
654 const struct cred *to, in security_binder_transfer_file()
679 static inline int security_capset(struct cred *new, in security_capset()
680 const struct cred *old, in security_capset()
688 static inline int security_capable(const struct cred *cred, in security_capable() argument
693 return cap_capable(cred, ns, cap, opts); in security_capable()
874 const struct cred *old, in security_dentry_create_files_as()
875 struct cred *new) in security_dentry_create_files_as()
1091 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1213 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1218 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1221 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1222 const struct cred *old, in security_prepare_creds()
1228 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1229 const struct cred *old) in security_transfer_creds()
1233 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1238 static inline void security_cred_getlsmprop(const struct cred *c, in security_cred_getlsmprop()
1242 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1247 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1284 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1285 const struct cred *old, in security_task_fix_setuid()
1291 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1292 const struct cred *old, in security_task_fix_setgid()
1298 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1299 const struct cred *old) in security_task_fix_setgroups()
1345 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1346 const struct cred *tcred, in security_task_prlimit()
1376 const struct cred *cred) in security_task_kill() argument
1392 static inline int security_create_user_ns(const struct cred *cred) in security_create_user_ns() argument
1609 int security_post_notification(const struct cred *w_cred,
1610 const struct cred *cred,
1613 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1614 const struct cred *cred, in security_post_notification() argument
2123 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
2125 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
2135 const struct cred *cred, in security_key_alloc() argument
2146 const struct cred *cred, in security_key_permission() argument
2361 extern int security_uring_override_creds(const struct cred *new);
2366 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()