Home
last modified time | relevance | path

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

12

/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()
/linux/include/rdma/
H A Dib.h78 return filp->f_cred == current_cred(); in ib_safe_file_access()
/linux/fs/
H A Dfile_table.c100 put_cred(f->f_cred); in file_free()
183 f->f_cred = get_cred(cred); in init_file()
186 put_cred(f->f_cred); in init_file()
H A Dbinfmt_misc.c1347 f = open_interp_file(file->f_cred, path); in bm_entry_add_interp()
1488 struct file *f = open_interp_file(file->f_cred, e->interpreter); in bm_register_write()
/linux/security/landlock/
H A Dtask.c276 dom_other = landlock_cred(other->sk_socket->file->f_cred)->domain; in sock_is_scoped()
288 domain = landlock_cred(other->sk_socket->file->f_cred)->domain; in get_socket_domain_id()
H A Dfs.c1789 dom_other = landlock_cred(other->sk_socket->file->f_cred)->domain; in hook_unix_find()
1862 landlock_get_applicable_subject(file->f_cred, any_fs, NULL); in hook_file_open()
1943 landlock_log_denial(landlock_cred(file->f_cred), &(struct landlock_request) { in hook_file_truncate()
1980 landlock_log_denial(landlock_cred(file->f_cred), &(struct landlock_request) { in hook_file_ioctl_common()
/linux/fs/efivarfs/
H A Dfile.c89 while (!__ratelimit(&file->f_cred->user->ratelimit)) in efivarfs_file_read()
/linux/fs/smb/server/
H A Dvfs.c260 saved_cred = override_creds(fp->filp->f_cred); in ksmbd_vfs_stream_read()
408 saved_cred = override_creds(fp->filp->f_cred); in ksmbd_vfs_stream_write()
971 saved_cred = override_creds(fp->filp->f_cred); in ksmbd_vfs_zero_data()
1038 saved_cred = override_creds(f->f_cred); in ksmbd_vfs_zero_holes()
1105 saved_cred = override_creds(fp->filp->f_cred); in ksmbd_vfs_trim_data()
1207 saved_cred = override_creds(filp->f_cred); in ksmbd_vfs_unlink()
2066 saved_cred = override_creds(src_fp->filp->f_cred); in ksmbd_vfs_copy_file_ranges()
2346 saved_cred = override_creds(fp->filp->f_cred); in __ksmbd_vfs_set_compression()
/linux/rust/kernel/fs/
H A Dfile.rs325 let ptr = unsafe { (*self.as_ptr()).f_cred }; in cred()
/linux/kernel/
H A Dcapability.c457 if (security_capable(file->f_cred, ns, cap, CAP_OPT_NONE) == 0) in file_ns_capable()
H A Duser_namespace.c901 const struct user_namespace *file_ns = file->f_cred->user_ns; in verify_root_map()
1205 const struct cred *cred = file->f_cred; in new_idmap_permitted()
H A Dkallsyms.c901 iter->show_value = kallsyms_show_value(file->f_cred); in kallsyms_open()
/linux/fs/erofs/
H A Dfileio.c61 scoped_with_creds(rq->iocb.ki_filp->f_cred) in erofs_fileio_rq_submit()
/linux/net/netfilter/
H A Dnft_meta.c157 file->f_cred->fsuid); in nft_meta_get_eval_skugid()
161 file->f_cred->fsgid); in nft_meta_get_eval_skugid()
/linux/net/sched/
H A Dcls_flow.c213 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
225 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/linux/security/keys/
H A Dproc.c167 .cred = m->file->f_cred, in proc_keys_show()
/linux/fs/coda/
H A Dfile.c272 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/linux/kernel/module/
H A Dsysfs.c47 kallsyms_show_value(file->f_cred) in module_sect_read()
/linux/fs/nfs/
H A Dlocalio.c687 scoped_with_creds(filp->f_cred) in nfs_local_call_read()
905 scoped_with_creds(filp->f_cred) in nfs_local_call_write()
/linux/fs/autofs/
H A Dwaitq.c151 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs_notify_daemon()
/linux/fs/orangefs/
H A Ddevorangefs-req.c126 if (file->f_cred->user_ns != &init_user_ns) { in orangefs_devreq_open()
/linux/security/apparmor/
H A Dlsm.c486 label = aa_get_newest_cred_label_condref(file->f_cred, &needput); in apparmor_file_open()
497 error = aa_path_perm(OP_OPEN, file->f_cred, in apparmor_file_open()
1247 aa_unix_peer_perm(peer->file ? peer->file->f_cred : NULL, in apparmor_unix_may_send()
/linux/kernel/bpf/
H A Dsyscall.c5025 const struct cred *f_cred) in bpf_insn_prepare_dump() argument
5054 if (!bpf_dump_raw_ok(f_cred)) in bpf_insn_prepare_dump()
5197 if (!prog->blinded || bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
5198 insns_sanitized = bpf_insn_prepare_dump(prog, file->f_cred); in bpf_prog_get_info_by_fd()
5235 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
5270 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
5301 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
5359 if (bpf_dump_raw_ok(file->f_cred)) { in bpf_prog_get_info_by_fd()
/linux/fs/nfsd/
H A Dnfsctl.c438 rv = nfsd_svc(1, &newthreads, net, file->f_cred, NULL); in write_threads()
812 return __write_ports_addfd(buf, net, file->f_cred); in __write_ports()
815 return __write_ports_addxprt(buf, net, file->f_cred); in __write_ports()
/linux/security/integrity/ima/
H A Dima_crypto.c269 f = dentry_open(&file->f_path, flags, file->f_cred); in ima_alloc_pages()

12