Lines Matching refs:cred
36 struct cred;
138 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
144 extern int cap_capset(struct cred *new, const struct cred *old,
162 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
274 int security_capset(struct cred *new, const struct cred *old,
278 int security_capable(const struct cred *cred,
324 const struct cred *old,
325 struct cred *new);
375 int security_inode_copy_up(struct dentry *src, struct cred **new);
397 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
398 void security_cred_free(struct cred *cred);
399 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
400 void security_transfer_creds(struct cred *new, const struct cred *old);
401 void security_cred_getsecid(const struct cred *c, u32 *secid);
402 int security_kernel_act_as(struct cred *new, u32 secid);
403 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
413 int security_task_fix_setuid(struct cred *new, const struct cred *old,
415 int security_task_fix_setgid(struct cred *new, const struct cred *old,
425 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
433 int sig, const struct cred *cred);
554 static inline int security_capset(struct cred *new, in security_capset()
555 const struct cred *old, in security_capset()
563 static inline int security_capable(const struct cred *cred, in security_capable() argument
568 return cap_capable(cred, ns, cap, opts); in security_capable()
750 const struct cred *old, in security_dentry_create_files_as()
751 struct cred *new) in security_dentry_create_files_as()
929 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1024 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
1029 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
1032 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1033 const struct cred *old, in security_prepare_creds()
1039 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1040 const struct cred *old) in security_transfer_creds()
1044 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1049 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1086 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1087 const struct cred *old, in security_task_fix_setuid()
1093 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1094 const struct cred *old, in security_task_fix_setgid()
1140 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1141 const struct cred *tcred, in security_task_prlimit()
1171 const struct cred *cred) in security_task_kill() argument
1354 int security_post_notification(const struct cred *w_cred,
1355 const struct cred *cred,
1358 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1359 const struct cred *cred, in security_post_notification() argument
1846 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1848 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1855 const struct cred *cred, in security_key_alloc() argument
1866 const struct cred *cred, in security_key_permission() argument