Home
last modified time | relevance | path

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

12

/openbmc/linux/net/netfilter/
H A Dxt_owner.c90 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt()
91 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
102 struct group_info *gi = filp->f_cred->group_info; in owner_mt()
104 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt()
105 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
H A Dnft_meta.c150 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
154 sock->file->f_cred->fsgid); in nft_meta_get_eval_skugid()
/openbmc/linux/security/safesetid/
H 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()
/openbmc/linux/fs/
H A Dfile_table.c68 put_cred(f->f_cred); in file_free_rcu()
160 f->f_cred = get_cred(cred); in init_file()
163 put_cred(f->f_cred); in init_file()
/openbmc/linux/include/rdma/
H A Dib.h78 return filp->f_cred == current_cred(); in ib_safe_file_access()
/openbmc/linux/kernel/
H A Dacct.c527 ac->ac_uid = from_kuid_munged(file->f_cred->user_ns, current_uid()); in fill_ac()
528 ac->ac_gid = from_kgid_munged(file->f_cred->user_ns, current_gid()); in fill_ac()
552 cred = override_creds(file->f_cred); in acct_write_process()
H A Dcapability.c460 if (security_capable(file->f_cred, ns, cap, CAP_OPT_NONE) == 0) in file_ns_capable()
H A Duser_namespace.c883 const struct user_namespace *file_ns = file->f_cred->user_ns; in verify_root_map()
1164 const struct cred *cred = file->f_cred; in new_idmap_permitted()
H A Dkallsyms.c921 iter->show_value = kallsyms_show_value(file->f_cred); in kallsyms_open()
/openbmc/linux/fs/efivarfs/
H A Dfile.c76 while (!__ratelimit(&file->f_cred->user->ratelimit)) in efivarfs_file_read()
/openbmc/linux/kernel/module/
H A Dprocfs.c133 m->private = kallsyms_show_value(file->f_cred) ? NULL : (void *)8ul; in modules_open()
H A Dsysfs.c55 kallsyms_show_value(file->f_cred) in module_sect_read()
/openbmc/linux/net/sched/
H A Dcls_flow.c208 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
220 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/openbmc/linux/include/linux/
H A Dseq_file.h226 return seq->file->f_cred->user_ns; in seq_user_ns()
/openbmc/linux/fs/nfsd/
H A Dnfsctl.c407 rv = nfsd_svc(newthreads, net, file->f_cred); in write_threads()
778 return __write_ports_addfd(buf, net, file->f_cred); in __write_ports()
781 return __write_ports_addxprt(buf, net, file->f_cred); in __write_ports()
/openbmc/linux/security/keys/
H A Dproc.c167 .cred = m->file->f_cred, in proc_keys_show()
/openbmc/linux/fs/ecryptfs/
H A Dmessaging.c109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { in ecryptfs_find_daemon_by_euid()
/openbmc/linux/Documentation/security/
H 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
/openbmc/linux/fs/coda/
H A Dfile.c274 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/openbmc/linux/fs/autofs/
H A Dwaitq.c138 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs_notify_daemon()
/openbmc/linux/fs/fuse/
H A Dcuse.c510 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open()
/openbmc/linux/fs/orangefs/
H A Ddevorangefs-req.c126 if (file->f_cred->user_ns != &init_user_ns) { in orangefs_devreq_open()
/openbmc/linux/kernel/bpf/
H A Dsyscall.c4303 const struct cred *f_cred) in bpf_insn_prepare_dump() argument
4329 if (!bpf_dump_raw_ok(f_cred)) in bpf_insn_prepare_dump()
4463 if (prog->blinded && !bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
4467 insns_sanitized = bpf_insn_prepare_dump(prog, file->f_cred); in bpf_prog_get_info_by_fd()
4501 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
4536 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
4567 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
4627 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
/openbmc/linux/security/apparmor/
H A Dlsm.c470 label = aa_get_newest_cred_label(file->f_cred); in apparmor_file_open()
481 error = aa_path_perm(OP_OPEN, file->f_cred, in apparmor_file_open()
/openbmc/linux/security/integrity/ima/
H A Dima_crypto.c558 f = dentry_open(&file->f_path, flags, file->f_cred); in ima_calc_file_hash()

12