Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 25 of 40) sorted by relevance

12

/include/linux/
Dcred.h20 struct cred;
66 extern void set_groups(struct cred *, struct group_info *);
111 struct cred { struct
149 extern void __put_cred(struct cred *); argument
152 extern const struct cred *get_task_cred(struct task_struct *);
153 extern struct cred *cred_alloc_blank(void);
154 extern struct cred *prepare_creds(void);
155 extern struct cred *prepare_exec_creds(void);
156 extern int commit_creds(struct cred *);
157 extern void abort_creds(struct cred *);
[all …]
Dbacking-file.h16 const struct cred *cred; member
24 const struct cred *cred);
27 umode_t mode, const struct cred *cred);
Dnsproxy.h69 const struct cred *cred; member
72 static inline struct cred *nsset_cred(struct nsset *set) in nsset_cred()
75 return (struct cred *)set->cred; in nsset_cred()
112 struct cred *, struct fs_struct *);
Dsecurity.h39 struct cred;
160 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
167 extern int cap_capset(struct cred *new, const struct cred *old,
184 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
284 int security_binder_set_context_mgr(const struct cred *mgr);
285 int security_binder_transaction(const struct cred *from,
286 const struct cred *to);
287 int security_binder_transfer_binder(const struct cred *from,
288 const struct cred *to);
289 int security_binder_transfer_file(const struct cred *from,
[all …]
Dwatch_queue.h19 struct cred;
63 const struct cred *cred; /* Creds of the owner of the watch */ member
81 const struct cred *,
104 const struct cred *cred, in post_watch_notification() argument
108 __post_watch_notification(wlist, n, cred, id); in post_watch_notification()
Dlsm_hook_defs.h29 LSM_HOOK(int, 0, binder_set_context_mgr, const struct cred *mgr)
30 LSM_HOOK(int, 0, binder_transaction, const struct cred *from,
31 const struct cred *to)
32 LSM_HOOK(int, 0, binder_transfer_binder, const struct cred *from,
33 const struct cred *to)
34 LSM_HOOK(int, 0, binder_transfer_file, const struct cred *from,
35 const struct cred *to, const struct file *file)
41 LSM_HOOK(int, 0, capset, struct cred *new, const struct cred *old,
44 LSM_HOOK(int, 0, capable, const struct cred *cred, struct user_namespace *ns,
88 struct qstr *name, const struct cred *old, struct cred *new)
[all …]
Dumh.h11 struct cred;
28 int (*init)(struct subprocess_info *info, struct cred *new);
39 int (*init)(struct subprocess_info *info, struct cred *new),
Dnfslocalio.h46 const struct cred *, const struct nfs_fh *,
55 const struct cred *,
66 struct rpc_clnt *, const struct cred *,
Dkey.h100 struct cred;
287 const struct cred *cred,
422 const struct cred *cred,
494 extern int install_thread_keyring_to_cred(struct cred *cred);
495 extern void key_fsuid_changed(struct cred *new_cred);
496 extern void key_fsgid_changed(struct cred *new_cred);
Dkallsyms.h24 struct cred;
69 extern bool kallsyms_show_value(const struct cred *cred);
Dnfs_fs.h85 const struct cred *cred; member
425 extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *, const struct cred *);
441 extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred,…
525 static inline const struct cred *nfs_file_cred(struct file *file) in nfs_file_cred()
531 return ctx->cred; in nfs_file_cred()
560 extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);
562 extern int nfs_access_get_cached(struct inode *inode, const struct cred *cred,
Daudit.h415 const struct cred *new,
416 const struct cred *old);
417 extern void __audit_log_capset(const struct cred *new, const struct cred *old);
495 const struct cred *new, in audit_log_bprm_fcaps()
496 const struct cred *old) in audit_log_bprm_fcaps()
503 static inline void audit_log_capset(const struct cred *new, in audit_log_capset()
504 const struct cred *old) in audit_log_capset()
666 const struct cred *new, in audit_log_bprm_fcaps()
667 const struct cred *old) in audit_log_bprm_fcaps()
671 static inline void audit_log_capset(const struct cred *new, in audit_log_capset()
[all …]
Dinit_task.h28 extern struct cred init_cred;
Duser_namespace.h172 extern int create_user_ns(struct cred *new);
173 extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred);
203 static inline int create_user_ns(struct cred *new) in create_user_ns()
209 struct cred **new_cred) in unshare_userns()
Dbinfmts.h51 struct cred *cred; /* new credentials */ member
Dfs_context.h17 struct cred;
99 const struct cred *cred; /* The mounter's credentials */ member
/include/linux/sunrpc/
Dsvcauth.h37 static inline void init_svc_cred(struct svc_cred *cred) in init_svc_cred() argument
39 cred->cr_group_info = NULL; in init_svc_cred()
40 cred->cr_raw_principal = NULL; in init_svc_cred()
41 cred->cr_principal = NULL; in init_svc_cred()
42 cred->cr_targ_princ = NULL; in init_svc_cred()
43 cred->cr_gss_mech = NULL; in init_svc_cred()
46 static inline void free_svc_cred(struct svc_cred *cred) in free_svc_cred() argument
48 if (cred->cr_group_info) in free_svc_cred()
49 put_group_info(cred->cr_group_info); in free_svc_cred()
50 kfree(cred->cr_raw_principal); in free_svc_cred()
[all …]
Dauth.h39 const struct cred *cred; member
57 const struct cred *cr_cred;
66 const struct cred *rpc_machine_cred(void);
190 struct rpc_cred *get_rpccred(struct rpc_cred *cred) in get_rpccred() argument
192 if (cred != NULL && refcount_inc_not_zero(&cred->cr_count)) in get_rpccred()
193 return cred; in get_rpccred()
Dsvcsock.h63 const struct cred *cred);
Dsvc_xprt.h78 const struct cred *xpt_cred;
140 int flags, const struct cred *cred);
144 const struct cred *cred);
Dclnt.h93 const struct cred *cl_cred;
150 const struct cred *cred; member
214 struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred,
/include/trace/hooks/
Dcreds.h13 struct cred;
16 TP_PROTO(const struct task_struct *task, const struct cred *new),
20 TP_PROTO(const struct task_struct *task, const struct cred *cred),
21 TP_ARGS(task, cred), 1);
24 TP_PROTO(const struct task_struct *task, const struct cred *new),
28 TP_PROTO(const struct task_struct *task, const struct cred *old),
/include/linux/pds/
Dpds_intr.h130 u32 cred, u32 flags) in pds_core_intr_credits() argument
132 if (WARN_ON_ONCE(cred > PDS_CORE_INTR_CRED_COUNT)) { in pds_core_intr_credits()
133 cred = ioread32(&intr_ctrl->credits); in pds_core_intr_credits()
134 cred &= PDS_CORE_INTR_CRED_COUNT_SIGNED; in pds_core_intr_credits()
137 iowrite32(cred | flags, &intr_ctrl->credits); in pds_core_intr_credits()
143 u32 cred; in pds_core_intr_clean_flags() local
145 cred = ioread32(&intr_ctrl->credits); in pds_core_intr_clean_flags()
146 cred &= PDS_CORE_INTR_CRED_COUNT_SIGNED; in pds_core_intr_clean_flags()
147 cred |= flags; in pds_core_intr_clean_flags()
148 iowrite32(cred, &intr_ctrl->credits); in pds_core_intr_clean_flags()
/include/linux/lockd/
Dbind.h51 const struct cred *cred; member
82 extern int lockd_up(struct net *net, const struct cred *cred);
/include/keys/
Drequest_key_auth-type.h20 const struct cred *cred; member

12