Lines Matching refs:cred

36 struct cred;
136 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
142 extern int cap_capset(struct cred *new, const struct cred *old,
157 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
269 int security_capset(struct cred *new, const struct cred *old,
273 int security_capable(const struct cred *cred,
317 const struct cred *old,
318 struct cred *new);
360 int security_inode_copy_up(struct dentry *src, struct cred **new);
382 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
383 void security_cred_free(struct cred *cred);
384 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
385 void security_transfer_creds(struct cred *new, const struct cred *old);
386 void security_cred_getsecid(const struct cred *c, u32 *secid);
387 int security_kernel_act_as(struct cred *new, u32 secid);
388 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
398 int security_task_fix_setuid(struct cred *new, const struct cred *old,
400 int security_task_fix_setgid(struct cred *new, const struct cred *old,
409 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
417 int sig, const struct cred *cred);
538 static inline int security_capset(struct cred *new, in security_capset()
539 const struct cred *old, in security_capset()
547 static inline int security_capable(const struct cred *cred, in security_capable() argument
552 return cap_capable(cred, ns, cap, opts); in security_capable()
724 const struct cred *old, in security_dentry_create_files_as()
725 struct cred *new) in security_dentry_create_files_as()
890 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
985 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
990 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
993 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
994 const struct cred *old, in security_prepare_creds()
1000 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1001 const struct cred *old) in security_transfer_creds()
1005 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
1010 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
1047 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1048 const struct cred *old, in security_task_fix_setuid()
1054 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1055 const struct cred *old, in security_task_fix_setgid()
1096 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit() argument
1097 const struct cred *tcred, in security_task_prlimit()
1127 const struct cred *cred) in security_task_kill() argument
1310 int security_post_notification(const struct cred *w_cred,
1311 const struct cred *cred,
1314 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1315 const struct cred *cred, in security_post_notification() argument
1797 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1799 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1806 const struct cred *cred, in security_key_alloc() argument
1817 const struct cred *cred, in security_key_permission() argument