Lines Matching refs:cred
39 struct cred;
160 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
167 extern int cap_capset(struct cred *new, const struct cred *old,
184 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
284 int security_binder_set_context_mgr(const struct cred *mgr);
285 int security_binder_transaction(const struct cred *from,
286 const struct cred *to);
287 int security_binder_transfer_binder(const struct cred *from,
288 const struct cred *to);
289 int security_binder_transfer_file(const struct cred *from,
290 const struct cred *to, const struct file *file);
297 int security_capset(struct cred *new, const struct cred *old,
301 int security_capable(const struct cred *cred,
347 const struct cred *old,
348 struct cred *new);
412 int security_inode_copy_up(struct dentry *src, struct cred **new);
442 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
443 void security_cred_free(struct cred *cred);
444 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
445 void security_transfer_creds(struct cred *new, const struct cred *old);
446 void security_cred_getsecid(const struct cred *c, u32 *secid);
447 int security_kernel_act_as(struct cred *new, u32 secid);
448 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
458 int security_task_fix_setuid(struct cred *new, const struct cred *old,
460 int security_task_fix_setgid(struct cred *new, const struct cred *old,
462 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
471 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
479 int sig, const struct cred *cred);
483 int security_create_user_ns(const struct cred *cred);
573 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
578 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
579 const struct cred *to) in security_binder_transaction()
584 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
585 const struct cred *to) in security_binder_transfer_binder()
590 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
591 const struct cred *to, in security_binder_transfer_file()
616 static inline int security_capset(struct cred *new, in security_capset()
617 const struct cred *old, in security_capset()
625 static inline int security_capable(const struct cred *cred, in security_capable() argument
630 return cap_capable(cred, ns, cap, opts); in security_capable()
812 const struct cred *old, in security_dentry_create_files_as()
813 struct cred *new) in security_dentry_create_files_as()
1028 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1150 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1155 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1158 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1159 const struct cred *old, in security_prepare_creds()
1165 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1166 const struct cred *old) in security_transfer_creds()
1170 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
1175 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1180 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1217 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1218 const struct cred *old, in security_task_fix_setuid()
1224 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1225 const struct cred *old, in security_task_fix_setgid()
1231 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1232 const struct cred *old) in security_task_fix_setgroups()
1277 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1278 const struct cred *tcred, in security_task_prlimit()
1308 const struct cred *cred) in security_task_kill() argument
1324 static inline int security_create_user_ns(const struct cred *cred) in security_create_user_ns() argument
1533 int security_post_notification(const struct cred *w_cred,
1534 const struct cred *cred,
1537 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1538 const struct cred *cred, in security_post_notification() argument
2047 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
2049 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
2059 const struct cred *cred, in security_key_alloc() argument
2070 const struct cred *cred, in security_key_permission() argument
2285 extern int security_uring_override_creds(const struct cred *new);
2289 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()