Lines Matching refs:cred

33 struct cred;
70 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
76 extern int cap_capset(struct cred *new, const struct cred *old,
90 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
198 int security_capset(struct cred *new, const struct cred *old,
202 int security_capable(const struct cred *cred, struct user_namespace *ns,
204 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
292 int security_file_open(struct file *file, const struct cred *cred);
295 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
296 void security_cred_free(struct cred *cred);
297 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
298 void security_transfer_creds(struct cred *new, const struct cred *old);
299 int security_kernel_act_as(struct cred *new, u32 secid);
300 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
304 int security_task_fix_setuid(struct cred *new, const struct cred *old,
424 static inline int security_capset(struct cred *new, in security_capset()
425 const struct cred *old, in security_capset()
433 static inline int security_capable(const struct cred *cred, in security_capable() argument
436 return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
439 static inline int security_capable_noaudit(const struct cred *cred, in security_capable_noaudit() argument
441 return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
808 const struct cred *cred) in security_file_open() argument
821 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
826 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
829 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
830 const struct cred *old, in security_prepare_creds()
836 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
837 const struct cred *old) in security_transfer_creds()
841 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
846 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
868 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
869 const struct cred *old, in security_task_fix_setuid()
1519 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1522 const struct cred *cred, unsigned perm);
1528 const struct cred *cred, in security_key_alloc() argument
1539 const struct cred *cred, in security_key_permission() argument