/linux-master/include/linux/ |
H A D | cred.h | 20 struct cred; 66 extern void set_groups(struct cred *, struct group_info *); 106 * task->cred points to the subjective context that defines the details of how 111 struct cred { struct 149 extern void __put_cred(struct cred *); 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 *); 168 cap_ambient_invariant_ok(const struct cred *cred) argument 183 get_new_cred_many(struct cred *cred, int nr) argument 196 get_new_cred(struct cred *cred) argument 215 get_cred_many(const struct cred *cred, int nr) argument 233 get_cred(const struct cred *cred) argument 238 get_cred_rcu(const struct cred *cred) argument 263 struct cred *cred = (struct cred *) _cred; local 278 put_cred(const struct cred *cred) argument [all...] |
H A D | nsproxy.h | 49 * If a new user namespace is requested cred will 58 const struct cred *cred; member in struct:nsset 61 static inline struct cred *nsset_cred(struct nsset *set) 64 return (struct cred *)set->cred; 101 struct cred *, struct fs_struct *);
|
H A D | backing-file.h | 16 const struct cred *cred; member in struct:backing_file_ctx 24 const struct cred *cred); 27 umode_t mode, const struct cred *cred);
|
H A D | watch_queue.h | 19 struct cred; 63 const struct cred *cred; /* Creds of the owner of the watch */ member in struct:watch 81 const struct cred *, 104 const struct cred *cred, 108 __post_watch_notification(wlist, n, cred, id); 102 post_watch_notification(struct watch_list *wlist, struct watch_notification *n, const struct cred *cred, u64 id) argument
|
/linux-master/security/landlock/ |
H A D | cred.c | 9 #include <linux/cred.h> 13 #include "cred.h" 17 static int hook_cred_prepare(struct cred *const new, 18 const struct cred *const old, const gfp_t gfp) 29 static void hook_cred_free(struct cred *const cred) argument 31 struct landlock_ruleset *const dom = landlock_cred(cred)->domain;
|
H A D | cred.h | 12 #include <linux/cred.h> 24 landlock_cred(const struct cred *cred) argument 26 return cred->security + landlock_blob_sizes.lbs_cred;
|
/linux-master/security/apparmor/include/ |
H A D | cred.h | 14 #include <linux/cred.h> 22 static inline struct aa_label *cred_label(const struct cred *cred) argument 24 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; 30 static inline void set_cred_label(const struct cred *cred, argument 33 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; 40 * aa_cred_raw_label - obtain cred's label 41 * @cred: cred t 47 aa_cred_raw_label(const struct cred *cred) argument 61 aa_get_newest_cred_label(const struct cred *cred) argument [all...] |
H A D | ipc.h | 16 int aa_may_signal(const struct cred *subj_cred, struct aa_label *sender, 17 const struct cred *target_cred, struct aa_label *target,
|
H A D | mount.h | 28 int aa_remount(const struct cred *subj_cred, 32 int aa_bind_mount(const struct cred *subj_cred, 37 int aa_mount_change_type(const struct cred *subj_cred, 41 int aa_move_mount_old(const struct cred *subj_cred, 44 int aa_move_mount(const struct cred *subj_cred, 48 int aa_new_mount(const struct cred *subj_cred, 53 int aa_umount(const struct cred *subj_cred, 56 int aa_pivotroot(const struct cred *subj_cred,
|
/linux-master/kernel/ |
H A D | ksyms_common.c | 28 bool kallsyms_show_value(const struct cred *cred) argument 36 if (security_capable(cred, &init_user_ns, CAP_SYSLOG,
|
H A D | cred.c | 11 #include <linux/cred.h> 44 struct cred init_cred = { 70 struct cred *cred = container_of(rcu, struct cred, rcu); local 72 kdebug("put_cred_rcu(%p)", cred); 74 if (atomic_long_read(&cred->usage) != 0) 76 cred, atomic_long_read(&cred->usage)); 78 security_cred_free(cred); 98 __put_cred(struct cred *cred) argument 119 struct cred *real_cred, *cred; local 155 const struct cred *cred; local [all...] |
H A D | uid16.c | 16 #include <linux/cred.h> 66 const struct cred *cred = current_cred(); local 70 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid)); 71 euid = high2lowuid(from_kuid_munged(cred->user_ns, cred->euid)); 72 suid = high2lowuid(from_kuid_munged(cred->user_ns, cred->suid)); 89 const struct cred *cre local 156 const struct cred *cred = current_cred(); local [all...] |
/linux-master/net/sunrpc/ |
H A D | auth.c | 12 #include <linux/cred.h> 41 static struct cred machine_cred = { 49 const struct cred *rpc_machine_cred(void) 261 rpcauth_unhash_cred_locked(struct rpc_cred *cred) argument 263 if (!test_and_clear_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags)) 265 hlist_del_rcu(&cred->cr_hash); 270 rpcauth_unhash_cred(struct rpc_cred *cred) argument 275 if (!test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags)) 277 cache_lock = &cred->cr_auth->au_credcache->lock; 279 ret = rpcauth_unhash_cred_locked(cred); 312 rpcauth_stringify_acceptor(struct rpc_cred *cred) argument 326 struct rpc_cred *cred; local 336 rpcauth_lru_add_locked(struct rpc_cred *cred) argument 345 rpcauth_lru_add(struct rpc_cred *cred) argument 355 rpcauth_lru_remove_locked(struct rpc_cred *cred) argument 364 rpcauth_lru_remove(struct rpc_cred *cred) argument 382 struct rpc_cred *cred; local 429 struct rpc_cred *cred, *next; local 519 struct rpc_cred *cred = NULL, local 582 const struct cred *cred = current_cred(); local 592 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) argument 647 rpcauth_bindcred(struct rpc_task *task, const struct cred *cred, int flags) argument 684 put_rpccred(struct rpc_cred *cred) argument 820 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 830 struct rpc_cred *cred; local 851 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 860 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local [all...] |
H A D | auth_unix.c | 71 unx_destroy_cred(struct rpc_cred *cred) argument 73 call_rcu(&cred->cr_rcu, unx_free_cred_callback); 80 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) argument 85 if (cred->cr_cred == acred->cred) 88 if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid)) 91 if (acred->cred 114 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local [all...] |
/linux-master/include/linux/pds/ |
H A D | pds_intr.h | 130 u32 cred, u32 flags) 132 if (WARN_ON_ONCE(cred > PDS_CORE_INTR_CRED_COUNT)) { 133 cred = ioread32(&intr_ctrl->credits); 134 cred &= PDS_CORE_INTR_CRED_COUNT_SIGNED; 137 iowrite32(cred | flags, &intr_ctrl->credits); 143 u32 cred; local 145 cred = ioread32(&intr_ctrl->credits); 146 cred &= PDS_CORE_INTR_CRED_COUNT_SIGNED; 147 cred |= flags; 148 iowrite32(cred, 129 pds_core_intr_credits(struct pds_core_intr __iomem *intr_ctrl, u32 cred, u32 flags) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_deny_namespace.c | 10 struct cred { struct 17 int BPF_PROG(test_userns_create, const struct cred *cred, int ret) argument 19 kernel_cap_t caps = cred->cap_effective;
|
/linux-master/include/linux/sunrpc/ |
H A D | svcauth.h | 19 #include <linux/cred.h> 36 static inline void init_svc_cred(struct svc_cred *cred) argument 38 cred->cr_group_info = NULL; 39 cred->cr_raw_principal = NULL; 40 cred->cr_principal = NULL; 41 cred->cr_targ_princ = NULL; 42 cred->cr_gss_mech = NULL; 45 static inline void free_svc_cred(struct svc_cred *cred) argument 47 if (cred->cr_group_info) 48 put_group_info(cred [all...] |
/linux-master/include/keys/ |
H A D | request_key_auth-type.h | 20 const struct cred *cred; member in struct:request_key_auth
|
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_regs.h | 66 int intr_idx, u32 cred, u32 flags) 68 if (WARN_ON_ONCE(cred > IONIC_INTR_CRED_COUNT)) { 69 cred = ioread32(&intr_ctrl[intr_idx].credits); 70 cred &= IONIC_INTR_CRED_COUNT_SIGNED; 73 iowrite32(cred | flags, &intr_ctrl[intr_idx].credits); 79 u32 cred; local 81 cred = ioread32(&intr_ctrl[intr_idx].credits); 82 cred &= IONIC_INTR_CRED_COUNT_SIGNED; 83 cred |= IONIC_INTR_CRED_RESET_COALESCE; 84 iowrite32(cred, 65 ionic_intr_credits(struct ionic_intr __iomem *intr_ctrl, int intr_idx, u32 cred, u32 flags) argument [all...] |
/linux-master/security/keys/ |
H A D | process_keys.c | 77 const struct cred *cred = current_cred(); local 82 uid_t uid = from_kuid(user_ns, cred->user->uid); 106 uid_keyring = keyring_alloc(buf, cred->user->uid, INVALID_GID, 107 cred, user_keyring_perm, 128 session_keyring = keyring_alloc(buf, cred->user->uid, INVALID_GID, 129 cred, user_keyring_perm, 185 struct key *get_user_session_keyring_rcu(const struct cred *cred) argument 187 struct key *reg_keyring = READ_ONCE(cred 317 install_session_keyring_to_cred(struct cred *cred, struct key *keyring) argument 426 const struct cred *cred = ctx->cred; local 557 const struct cred *cred = ctx->cred; local [all...] |
H A D | permission.c | 15 * @cred: The credentials to use. 21 * The caller must hold either a ref on cred or must hold the RCU readlock. 26 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, argument 54 if (uid_eq(key->uid, cred->fsuid)) { 62 if (gid_eq(key->gid, cred->fsgid)) { 67 ret = groups_search(cred->group_info, key->gid); 90 return security_key_permission(key_ref, cred, need_perm);
|
H A D | request_key_auth.c | 112 if (rka->cred) 113 put_cred(rka->cred); 166 const struct cred *cred = current_cred(); local 185 if (cred->request_key_auth) { 187 down_read(&cred->request_key_auth->sem); 192 &cred->request_key_auth->flags)) { 193 up_read(&cred->request_key_auth->sem); 198 irka = cred->request_key_auth->payload.data[0]; 199 rka->cred [all...] |
/linux-master/include/linux/lockd/ |
H A D | bind.h | 51 const struct cred *cred; member in struct:nlmclnt_initdata 82 extern int lockd_up(struct net *net, const struct cred *cred);
|
/linux-master/fs/nfs/ |
H A D | delegation.h | 18 const struct cred *cred; member in struct:nfs_delegation 43 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, 45 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, 70 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync); 73 bool nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred); [all...] |
/linux-master/fs/smb/client/ |
H A D | cifs_spnego.c | 21 static const struct cred *spnego_cred; 96 const struct cred *saved_cred; 180 struct cred *cred; local 192 cred = prepare_kernel_cred(&init_task); 193 if (!cred) 197 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 215 cred->thread_keyring = keyring; 216 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; 217 spnego_cred = cred; [all...] |