Home
last modified time | relevance | path

Searched refs:f_cred (Results 1 – 25 of 46) sorted by relevance

12

/linux/net/netfilter/
A Dxt_owner.c87 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt()
88 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
97 struct group_info *gi = filp->f_cred->group_info; in owner_mt()
99 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt()
100 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
A Dnft_meta.c151 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
155 sock->file->f_cred->fsgid); in nft_meta_get_eval_skugid()
A Dnf_log_syslog.c167 const struct cred *cred = sk->sk_socket->file->f_cred; in nf_log_dump_sk_uid_gid()
/linux/security/safesetid/
A Dsecurityfs.c54 rule->src_id.uid = make_kuid(file->f_cred->user_ns, parsed_parent); in parse_policy_line()
55 rule->dst_id.uid = make_kuid(file->f_cred->user_ns, parsed_child); in parse_policy_line()
59 rule->src_id.gid = make_kgid(file->f_cred->user_ns, parsed_parent); in parse_policy_line()
60 rule->dst_id.gid = make_kgid(file->f_cred->user_ns, parsed_child); in parse_policy_line()
/linux/kernel/
A Dacct.c483 orig_cred = override_creds(file->f_cred); in do_acct_process()
494 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process()
495 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
A Dcapability.c473 if (security_capable(file->f_cred, ns, cap, CAP_OPT_NONE) == 0) in file_ns_capable()
A Duser_namespace.c866 const struct user_namespace *file_ns = file->f_cred->user_ns; in verify_root_map()
1147 const struct cred *cred = file->f_cred; in new_idmap_permitted()
A Dkallsyms.c850 iter->show_value = kallsyms_show_value(file->f_cred); in kallsyms_open()
A Dkprobes.c2618 if (!kallsyms_show_value(pi->file->f_cred)) in report_probe()
2710 if (!kallsyms_show_value(m->file->f_cred)) in kprobe_blacklist_seq_show()
/linux/include/rdma/
A Dib.h78 return filp->f_cred == current_cred() && !uaccess_kernel(); in ib_safe_file_access()
/linux/fs/
A Dfile_table.c49 put_cred(f->f_cred); in file_free_rcu()
105 f->f_cred = get_cred(cred); in __alloc_file()
/linux/fs/efivarfs/
A Dfile.c76 while (!__ratelimit(&file->f_cred->user->ratelimit)) in efivarfs_file_read()
/linux/net/sched/
A Dcls_flow.c207 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
219 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/linux/include/linux/
A Dseq_file.h225 return seq->file->f_cred->user_ns; in seq_user_ns()
/linux/fs/nfsd/
A Dnfsctl.c447 rv = nfsd_svc(newthreads, net, file->f_cred); in write_threads()
810 return __write_ports_addfd(buf, net, file->f_cred); in __write_ports()
813 return __write_ports_addxprt(buf, net, file->f_cred); in __write_ports()
/linux/fs/ecryptfs/
A Dmessaging.c109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { in ecryptfs_find_daemon_by_euid()
/linux/fs/coda/
A Dfile.c246 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/linux/security/keys/
A Dproc.c167 .cred = m->file->f_cred, in proc_keys_show()
/linux/Documentation/security/
A Dcredentials.rst540 credentials and this is attached to the file struct as ``f_cred`` in place of
542 ``file->f_gid`` should now access ``file->f_cred->fsuid`` and
543 ``file->f_cred->fsgid``.
545 It is safe to access ``f_cred`` without the use of RCU or locking because the
/linux/kernel/bpf/
A Dsyscall.c3530 const struct cred *f_cred) in bpf_insn_prepare_dump() argument
3556 if (!bpf_dump_raw_ok(f_cred)) in bpf_insn_prepare_dump()
3689 if (prog->blinded && !bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
3693 insns_sanitized = bpf_insn_prepare_dump(prog, file->f_cred); in bpf_prog_get_info_by_fd()
3727 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
3762 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
3793 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
3850 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
/linux/fs/autofs/
A Dwaitq.c137 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs_notify_daemon()
/linux/fs/fuse/
A Dcuse.c511 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open()
/linux/fs/orangefs/
A Ddevorangefs-req.c126 if (file->f_cred->user_ns != &init_user_ns) { in orangefs_devreq_open()
/linux/security/integrity/ima/
A Dima_crypto.c557 f = dentry_open(&file->f_path, flags, file->f_cred); in ima_calc_file_hash()
/linux/drivers/hid/
A Duhid.c729 if (file->f_cred != current_cred() || uaccess_kernel()) { in uhid_char_write()

Completed in 71 milliseconds

12