Searched refs:f_cred (Results 1 - 25 of 48) sorted by relevance

12

/linux-master/net/netfilter/
H A Dxt_owner.c90 if ((uid_gte(filp->f_cred->fsuid, uid_min) &&
91 uid_lte(filp->f_cred->fsuid, uid_max)) ^
102 struct group_info *gi = filp->f_cred->group_info;
104 if (gid_gte(filp->f_cred->fsgid, gid_min) &&
105 gid_lte(filp->f_cred->fsgid, gid_max))
H A Dnft_meta.c150 sock->file->f_cred->fsuid);
154 sock->file->f_cred->fsgid);
/linux-master/include/rdma/
H A Dib.h78 return filp->f_cred == current_cred();
/linux-master/security/safesetid/
H A Dsecurityfs.c54 rule->src_id.uid = make_kuid(file->f_cred->user_ns, parsed_parent);
55 rule->dst_id.uid = make_kuid(file->f_cred->user_ns, parsed_child);
59 rule->src_id.gid = make_kgid(file->f_cred->user_ns, parsed_parent);
60 rule->dst_id.gid = make_kgid(file->f_cred->user_ns, parsed_child);
/linux-master/kernel/module/
H A Dprocfs.c133 m->private = kallsyms_show_value(file->f_cred) ? NULL : (void *)8ul;
H A Dsysfs.c55 kallsyms_show_value(file->f_cred)
/linux-master/fs/efivarfs/
H A Dfile.c76 while (!__ratelimit(&file->f_cred->user->ratelimit))
/linux-master/kernel/
H A Dacct.c505 orig_cred = override_creds(file->f_cred);
516 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid);
517 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid);
H A Dcapability.c460 if (security_capable(file->f_cred, ns, cap, CAP_OPT_NONE) == 0)
H A Duser_namespace.c886 const struct user_namespace *file_ns = file->f_cred->user_ns;
1167 const struct cred *cred = file->f_cred;
H A Dkallsyms.c921 iter->show_value = kallsyms_show_value(file->f_cred);
/linux-master/fs/
H A Dfile_table.c68 put_cred(f->f_cred);
151 f->f_cred = get_cred(cred);
154 put_cred(f->f_cred);
/linux-master/fs/ecryptfs/
H A Dmessaging.c109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) {
/linux-master/include/linux/
H A Dseq_file.h241 return seq->file->f_cred->user_ns;
/linux-master/security/keys/
H A Dproc.c167 .cred = m->file->f_cred,
/linux-master/fs/coda/
H A Dfile.c272 coda_flags, coda_file->f_cred->fsuid);
/linux-master/fs/nfsd/
H A Dnfsctl.c409 rv = nfsd_svc(newthreads, net, file->f_cred);
772 return __write_ports_addfd(buf, net, file->f_cred);
775 return __write_ports_addxprt(buf, net, file->f_cred);
/linux-master/fs/autofs/
H A Dwaitq.c138 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns;
/linux-master/net/sched/
H A Dcls_flow.c208 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid;
220 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid;
/linux-master/fs/orangefs/
H A Ddevorangefs-req.c126 if (file->f_cred->user_ns != &init_user_ns) {
/linux-master/security/integrity/ima/
H A Dima_crypto.c558 f = dentry_open(&file->f_path, flags, file->f_cred);
/linux-master/fs/fuse/
H A Dcuse.c512 * be represented in file->f_cred->user_ns.
514 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns,
/linux-master/kernel/bpf/
H A Dsyscall.c4450 const struct cred *f_cred)
4476 if (!bpf_dump_raw_ok(f_cred))
4616 if (prog->blinded && !bpf_dump_raw_ok(file->f_cred)) {
4620 insns_sanitized = bpf_insn_prepare_dump(prog, file->f_cred);
4654 if (bpf_dump_raw_ok(file->f_cred)) {
4689 if (bpf_dump_raw_ok(file->f_cred)) {
4720 if (bpf_dump_raw_ok(file->f_cred)) {
4780 if (bpf_dump_raw_ok(file->f_cred)) {
4449 bpf_insn_prepare_dump(const struct bpf_prog *prog, const struct cred *f_cred) argument
/linux-master/security/apparmor/
H A Dlsm.c480 label = aa_get_newest_cred_label(file->f_cred);
491 error = aa_path_perm(OP_OPEN, file->f_cred,
/linux-master/net/sunrpc/
H A Dsvcauth_unix.c562 struct user_namespace *user_ns = m->file->f_cred->user_ns;

Completed in 577 milliseconds

12