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

12

/linux-master/fs/orangefs/
H A Ddevorangefs-req.c126 if (file->f_cred->user_ns != &init_user_ns) {
/linux-master/drivers/android/
H A Dbinder.c5641 proc->cred = get_cred(filp->f_cred);
/linux-master/drivers/hid/
H A Duhid.c749 if (file->f_cred != current_cred()) {
/linux-master/drivers/net/ppp/
H A Dppp_generic.c393 if (!ns_capable(file->f_cred->user_ns, CAP_NET_ADMIN))
/linux-master/drivers/scsi/
H A Dsg.c226 if (filp->f_cred != current_real_cred()) {
/linux-master/fs/autofs/
H A Dwaitq.c138 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns;
/linux-master/fs/
H A Dbinfmt_misc.c832 old_cred = override_creds(file->f_cred);
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/coda/
H A Dfile.c272 coda_flags, coda_file->f_cred->fsuid);
/linux-master/fs/ecryptfs/
H A Dmessaging.c109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) {
/linux-master/fs/efivarfs/
H A Dfile.c76 while (!__ratelimit(&file->f_cred->user->ratelimit))
/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,
H A Dinode.c1784 (ctx->file->f_cred->user_ns != sb->s_user_ns))
/linux-master/fs/nfs/
H A Ddir.c588 .cred = desc->file->f_cred,
H A Dinode.c1043 ctx->cred = get_cred(filp->f_cred);
/linux-master/fs/nfsd/
H A Dexport.c1324 struct user_namespace *userns = m->file->f_cred->user_ns;
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/proc/
H A Dbase.c1260 from_kuid(file->f_cred->user_ns,
1298 kloginuid = make_kuid(file->f_cred->user_ns, loginuid);
/linux-master/include/linux/
H A Dfs.h1011 const struct cred *f_cred; member in struct:file
2685 return dentry_open(&file->f_path, file->f_flags, file->f_cred);
H A Dseq_file.h241 return seq->file->f_cred->user_ns;
/linux-master/include/net/
H A Dsock.h911 return sk->sk_socket->file->f_cred->user_ns;
/linux-master/include/rdma/
H A Dib.h78 return filp->f_cred == current_cred();
/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)
/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

Completed in 406 milliseconds

12