Lines Matching refs:cred
32 struct cred;
76 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
82 extern int cap_capset(struct cred *new, const struct cred *old,
96 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
1476 int (*capset) (struct cred *new,
1477 const struct cred *old,
1481 int (*capable) (const struct cred *cred, struct user_namespace *ns,
1593 int (*file_open) (struct file *file, const struct cred *cred);
1597 int (*cred_alloc_blank) (struct cred *cred, gfp_t gfp);
1598 void (*cred_free) (struct cred *cred);
1599 int (*cred_prepare)(struct cred *new, const struct cred *old,
1601 void (*cred_transfer)(struct cred *new, const struct cred *old);
1602 int (*kernel_act_as)(struct cred *new, u32 secid);
1603 int (*kernel_create_files_as)(struct cred *new, struct inode *inode);
1607 int (*task_fix_setuid) (struct cred *new, const struct cred *old,
1743 int (*key_alloc) (struct key *key, const struct cred *cred, unsigned long flags);
1746 const struct cred *cred,
1781 int security_capset(struct cred *new, const struct cred *old,
1785 int security_capable(const struct cred *cred, struct user_namespace *ns,
1787 int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
1874 int security_file_open(struct file *file, const struct cred *cred);
1877 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
1878 void security_cred_free(struct cred *cred);
1879 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
1880 void security_transfer_creds(struct cred *new, const struct cred *old);
1881 int security_kernel_act_as(struct cred *new, u32 secid);
1882 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
1886 int security_task_fix_setuid(struct cred *new, const struct cred *old,
2006 static inline int security_capset(struct cred *new, in security_capset()
2007 const struct cred *old, in security_capset()
2015 static inline int security_capable(const struct cred *cred, in security_capable() argument
2018 return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
2021 static inline int security_capable_noaudit(const struct cred *cred, in security_capable_noaudit() argument
2023 return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
2389 const struct cred *cred) in security_file_open() argument
2402 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank() argument
2407 static inline void security_cred_free(struct cred *cred) in security_cred_free() argument
2410 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
2411 const struct cred *old, in security_prepare_creds()
2417 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
2418 const struct cred *old) in security_transfer_creds()
2422 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as() argument
2427 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as() argument
2449 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
2450 const struct cred *old, in security_task_fix_setuid()
3100 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
3103 const struct cred *cred, unsigned perm);
3109 const struct cred *cred, in security_key_alloc() argument
3120 const struct cred *cred, in security_key_permission() argument