/linux-master/security/apparmor/ |
H A D | capability.c | 18 #include "include/cred.h" 143 * @subj_cred: cred we are testing capability against 152 int aa_capable(const struct cred *subj_cred, struct aa_label *label,
|
/linux-master/fs/nfsd/ |
H A D | auth.c | 25 struct cred *new;
|
/linux-master/include/linux/ |
H A D | fscache-cache.h | 113 extern bool fscache_wait_for_operation(struct netfs_cache_resources *cred,
|
H A D | nfs_fs_sb.h | 67 const char * cl_principal; /* used for machine cred */ 109 * must use machine cred */ 266 const struct cred *cred; member in struct:nfs_server
|
/linux-master/fs/overlayfs/ |
H A D | ovl_entry.h | 74 const struct cred *creator_cred;
|
/linux-master/fs/exportfs/ |
H A D | expfs.c | 19 #include <linux/cred.h> 278 const struct cred *cred = current_cred(); local 312 file = dentry_open(path, O_RDONLY, cred);
|
/linux-master/init/ |
H A D | do_mounts_initrd.c | 73 static int __init init_linuxrc(struct subprocess_info *info, struct cred *new)
|
/linux-master/security/integrity/ima/ |
H A D | ima.h | 372 const struct cred *cred, u32 secid, int mask, 403 const struct cred *cred, u32 secid, enum ima_hooks func,
|
H A D | ima_policy.c | 509 * @cred: a pointer to a credentials structure for user validation 515 const struct cred *cred) 521 if ((rule->flags & IMA_UID) && !rule->uid_op(cred->uid, rule->uid)) 559 * @cred: a pointer to a credentials structure for user validation 569 struct inode *inode, const struct cred *cred, 586 ima_match_rule_data(rule, func_data, cred)); 606 if ((rule->flags & IMA_UID) && !rule->uid_op(cred->uid, rule->uid)) 610 if (!rule->uid_op(cred 513 ima_match_rule_data(struct ima_rule_entry *rule, const char *func_data, const struct cred *cred) argument 567 ima_match_rules(struct ima_rule_entry *rule, struct mnt_idmap *idmap, struct inode *inode, const struct cred *cred, u32 secid, enum ima_hooks func, int mask, const char *func_data) argument 739 ima_match_policy(struct mnt_idmap *idmap, struct inode *inode, const struct cred *cred, u32 secid, enum ima_hooks func, int mask, int flags, int *pcr, struct ima_template_desc **template_desc, const char *func_data, unsigned int *allowed_algos) argument [all...] |
/linux-master/security/apparmor/include/ |
H A D | audit.h | 116 const struct cred *subj_cred;
|
/linux-master/kernel/ |
H A D | audit.c | 1600 const struct cred *cred; local 1612 cred = current_cred(); 1616 from_kuid(&init_user_ns, cred->uid), 2245 const struct cred *cred; local 2252 cred = current_cred(); 2261 from_kuid(&init_user_ns, cred->uid), 2262 from_kgid(&init_user_ns, cred->gid), 2263 from_kuid(&init_user_ns, cred [all...] |
H A D | ptrace.c | 70 const struct cred *ptracer_cred) 119 const struct cred *old_cred; 278 const struct cred *cred = current_cred(), *tcred; local 302 caller_uid = cred->fsuid; 303 caller_gid = cred->fsgid; 313 caller_uid = cred->uid; 314 caller_gid = cred->gid;
|
/linux-master/fs/nfs/ |
H A D | client.c | 515 .cred = cl_init->cred, 576 .cred = server->cred, 683 .cred = server->cred, 1039 put_cred(server->cred); 1060 server->cred = get_cred(fc->cred); 1127 server->cred [all...] |
H A D | nfs4session.c | 584 const struct cred *cred; local 586 cred = nfs4_get_clid_cred(session->clp); 587 nfs4_proc_destroy_session(session, cred); 588 put_cred(cred);
|
H A D | write.c | 1238 struct rpc_cred *cred, *new, *old = NULL; local 1240 .cred = ctx->cred, 1245 cred = rcu_dereference(ctx->ll_cred); 1246 if (cred && !(cred->cr_ops->crkey_timeout && 1247 cred->cr_ops->crkey_timeout(cred))) 1252 if (new == cred) { 1680 .rpc_cred = data->cred, [all...] |
/linux-master/ipc/ |
H A D | namespace.c | 13 #include <linux/cred.h> 238 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN))
|
/linux-master/fs/lockd/ |
H A D | clntlock.c | 51 status = lockd_up(nlm_init->net, nlm_init->cred); 58 nlm_init->net, nlm_init->cred);
|
/linux-master/security/keys/ |
H A D | key.c | 197 * @cred: The credentials specifying UID namespace. 225 kuid_t uid, kgid_t gid, const struct cred *cred, 315 ret = security_key_alloc(key, cred, flags); 817 const struct cred *cred = current_cred(); local 931 cred->fsuid, cred->fsgid, cred, perm, flags, NULL); 224 key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags, struct key_restriction *restrict_link) argument
|
/linux-master/drivers/android/ |
H A D | binder_internal.h | 346 * @cred struct cred associated with the `struct file` 411 const struct cred *cred; member in struct:binder_proc
|
/linux-master/net/sunrpc/auth_gss/ |
H A D | gss_rpc_xdr.c | 550 struct gssx_cred *cred) 554 /* cred->desired_name */ 555 err = gssx_enc_name(xdr, &cred->desired_name); 559 /* cred->elements */ 560 err = dummy_enc_credel_array(xdr, &cred->elements); 564 /* cred->cred_handle_reference */ 565 err = gssx_enc_buffer(xdr, &cred->cred_handle_reference); 569 /* cred->needs_release */ 570 err = gssx_enc_bool(xdr, cred->needs_release); 549 gssx_enc_cred(struct xdr_stream *xdr, struct gssx_cred *cred) argument
|
/linux-master/net/sunrpc/ |
H A D | svc_xprt.c | 252 size_t len, int flags, const struct cred *cred) 276 newxprt->xpt_cred = get_cred(cred); 295 * @cred: credential to bind to this transport 301 int flags, const struct cred *cred) 319 err = _svc_xprt_create(serv, xprt_name, net, sap, len, flags, cred); 323 cred); 338 * @cred: credential to bind to this transport 345 const struct cred *cre 250 _svc_xprt_create(struct svc_serv *serv, const char *xprt_name, struct net *net, struct sockaddr *sap, size_t len, int flags, const struct cred *cred) argument 299 svc_xprt_create_from_sa(struct svc_serv *serv, const char *xprt_name, struct net *net, struct sockaddr *sap, int flags, const struct cred *cred) argument 342 svc_xprt_create(struct svc_serv *serv, const char *xprt_name, struct net *net, const int family, const unsigned short port, int flags, const struct cred *cred) argument [all...] |
/linux-master/drivers/hwmon/ |
H A D | nct6775-platform.c | 587 int cred; local 594 cred = sio_data->sio_inb(sio_data, 0xed); 631 (!dsw_en || (cred & BIT(4))); 637 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); 646 (!dsw_en || (cred & BIT(4))); 655 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); 673 pwm6pin |= cred & BIT(2); 687 pwm6pin |= !(cred & BIT(2)) && (cr2a & BIT(3)); 708 pwm6pin |= !as_seq1_en && !(cred & BIT(2)) && (cr2a & BIT(3));
|
/linux-master/fs/smb/client/ |
H A D | cifsacl.c | 65 static const struct cred *root_cred; 287 const struct cred *saved_cred; 345 const struct cred *saved_cred; 460 struct cred *cred; local 473 cred = prepare_kernel_cred(&init_task); 474 if (!cred) 478 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 494 cred->thread_keyring = keyring; 495 cred [all...] |
/linux-master/fs/cachefiles/ |
H A D | interface.c | 181 const struct cred *saved_cred; 284 const struct cred *saved_cred; 358 const struct cred *saved_cred;
|
/linux-master/fs/ |
H A D | exec.c | 1406 retval = set_cred_ucounts(bprm->cred); 1415 commit_creds(bprm->cred); 1416 bprm->cred = NULL; 1446 if (!bprm->cred) 1508 * Or, if exec fails before, free_bprm() should release ->cred 1516 bprm->cred = prepare_exec_creds(); 1517 if (likely(bprm->cred)) 1540 if (bprm->cred) { 1542 abort_creds(bprm->cred); 1694 if (!vfsuid_has_mapping(bprm->cred [all...] |