Searched refs:cred (Results 151 - 175 of 336) sorted by relevance

1234567891011>>

/linux-master/security/apparmor/
H A Dcapability.c18 #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 Dauth.c25 struct cred *new;
/linux-master/include/linux/
H A Dfscache-cache.h113 extern bool fscache_wait_for_operation(struct netfs_cache_resources *cred,
H A Dnfs_fs_sb.h67 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 Dovl_entry.h74 const struct cred *creator_cred;
/linux-master/fs/exportfs/
H A Dexpfs.c19 #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 Ddo_mounts_initrd.c73 static int __init init_linuxrc(struct subprocess_info *info, struct cred *new)
/linux-master/security/integrity/ima/
H A Dima.h372 const struct cred *cred, u32 secid, int mask,
403 const struct cred *cred, u32 secid, enum ima_hooks func,
H A Dima_policy.c509 * @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 Daudit.h116 const struct cred *subj_cred;
/linux-master/kernel/
H A Daudit.c1600 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 Dptrace.c70 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 Dclient.c515 .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 Dnfs4session.c584 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 Dwrite.c1238 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 Dnamespace.c13 #include <linux/cred.h>
238 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN))
/linux-master/fs/lockd/
H A Dclntlock.c51 status = lockd_up(nlm_init->net, nlm_init->cred);
58 nlm_init->net, nlm_init->cred);
/linux-master/security/keys/
H A Dkey.c197 * @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 Dbinder_internal.h346 * @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 Dgss_rpc_xdr.c550 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 Dsvc_xprt.c252 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 Dnct6775-platform.c587 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 Dcifsacl.c65 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 Dinterface.c181 const struct cred *saved_cred;
284 const struct cred *saved_cred;
358 const struct cred *saved_cred;
/linux-master/fs/
H A Dexec.c1406 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...]

Completed in 479 milliseconds

1234567891011>>