Lines Matching refs:cred

36 struct cred;
74 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
80 extern int cap_capset(struct cred *new, const struct cred *old,
95 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
232 int security_capset(struct cred *new, const struct cred *old,
236 int security_capable(const struct cred *cred, struct user_namespace *ns,
238 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
274 const struct cred *old,
275 struct cred *new);
316 int security_inode_copy_up(struct dentry *src, struct cred **new);
336 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
337 void security_cred_free(struct cred *cred);
338 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
339 void security_transfer_creds(struct cred *new, const struct cred *old);
340 void security_cred_getsecid(const struct cred *c, u32 *secid);
341 int security_kernel_act_as(struct cred *new, u32 secid);
342 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
348 int security_task_fix_setuid(struct cred *new, const struct cred *old,
357 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
365 int sig, const struct cred *cred);
485 static inline int security_capset(struct cred *new, in security_capset()
486 const struct cred *old, in security_capset()
494 static inline int security_capable(const struct cred *cred, in security_capable() argument
497 return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
500 static inline int security_capable_noaudit(const struct cred *cred, in security_capable_noaudit() argument
502 return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
642 const struct cred *old, in security_dentry_create_files_as()
643 struct cred *new) in security_dentry_create_files_as()
808 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
897 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
902 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
905 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
906 const struct cred *old, in security_prepare_creds()
912 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
913 const struct cred *old) in security_transfer_creds()
917 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
922 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
951 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
952 const struct cred *old, in security_task_fix_setuid()
993 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
994 const struct cred *tcred, in security_task_prlimit()
1024 const struct cred *cred) in security_task_kill() argument
1665 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1668 const struct cred *cred, unsigned perm);
1674 const struct cred *cred, in security_key_alloc() argument
1685 const struct cred *cred, in security_key_permission() argument