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

/linux-4.1.27/net/netfilter/
H A Dxt_owner.c54 if ((uid_gte(filp->f_cred->fsuid, uid_min) && owner_mt()
55 uid_lte(filp->f_cred->fsuid, uid_max)) ^ owner_mt()
63 if ((gid_gte(filp->f_cred->fsgid, gid_min) && owner_mt()
64 gid_lte(filp->f_cred->fsgid, gid_max)) ^ owner_mt()
H A Dnft_meta.c100 skb->sk->sk_socket->file->f_cred->fsuid); nft_meta_get_eval()
114 skb->sk->sk_socket->file->f_cred->fsgid); nft_meta_get_eval()
H A Dnf_log_common.c142 const struct cred *cred = sk->sk_socket->file->f_cred; nf_log_dump_sk_uid_gid()
H A Dnfnetlink_log.c555 const struct cred *cred = file->f_cred; __build_packet_message()
H A Dnfnetlink_queue_core.c265 cred = sk->sk_socket->file->f_cred; nfqnl_put_sk_uidgid()
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_procconf.c240 filep->f_cred->fsuid, filep->f_cred->fsgid, hysdn_conf_open()
314 filep->f_cred->fsuid, filep->f_cred->fsgid, hysdn_conf_close()
/linux-4.1.27/include/rdma/
H A Dib.h102 return filp->f_cred == current_cred() && segment_eq(get_fs(), USER_DS); ib_safe_file_access()
/linux-4.1.27/fs/
H A Dfile_table.c48 put_cred(f->f_cred); file_free_rcu()
127 f->f_cred = get_cred(cred); get_empty_filp()
H A Dseq_file.c66 p->user_ns = file->f_cred->user_ns; seq_open()
/linux-4.1.27/fs/coda/
H A Dfile.c169 coda_flags, coda_file->f_cred->fsuid); coda_release()
/linux-4.1.27/security/apparmor/include/
H A Dcontext.h31 * as the profile reference is now stored in the f_cred. However the
/linux-4.1.27/kernel/
H A Dacct.c481 orig_cred = override_creds(file->f_cred); do_acct_process()
492 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); do_acct_process()
493 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); do_acct_process()
H A Dcapability.c426 if (security_capable(file->f_cred, ns, cap) == 0) file_ns_capable()
H A Duser_namespace.c819 const struct cred *cred = file->f_cred; new_idmap_permitted()
/linux-4.1.27/net/sched/
H A Dcls_flow.c195 kuid_t skuid = skb->sk->sk_socket->file->f_cred->fsuid; flow_get_skuid()
204 kgid_t skgid = skb->sk->sk_socket->file->f_cred->fsgid; flow_get_skgid()
/linux-4.1.27/fs/hppfs/
H A Dhppfs.c422 const struct cred *cred = file->f_cred; hppfs_open()
483 const struct cred *cred = file->f_cred; hppfs_dir_open()
/linux-4.1.27/fs/autofs4/
H A Dwaitq.c149 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; autofs4_notify_daemon()
/linux-4.1.27/fs/ecryptfs/
H A Dmessaging.c122 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { ecryptfs_find_daemon_by_euid()
/linux-4.1.27/security/apparmor/
H A Dlsm.c429 struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); common_file_perm()
/linux-4.1.27/fs/fuse/
H A Dinode.c1020 (file->f_cred->user_ns != &init_user_ns)) fuse_fill_super()
/linux-4.1.27/fs/proc/
H A Dbase.c1026 from_kuid(file->f_cred->user_ns, proc_loginuid_read()
1074 kloginuid = make_kuid(file->f_cred->user_ns, loginuid); proc_loginuid_write()
/linux-4.1.27/drivers/pci/
H A Dpci-sysfs.c637 if (security_capable(filp->f_cred, &init_user_ns, CAP_SYS_ADMIN) == 0) pci_read_config()
/linux-4.1.27/include/net/
H A Dsock.h692 return sk->sk_socket->file->f_cred->user_ns; sk_user_ns()
/linux-4.1.27/include/linux/
H A Dfs.h849 const struct cred *f_cred; member in struct:file

Completed in 780 milliseconds