Searched refs:f_cred (Results 1 – 24 of 24) sorted by relevance
/linux-4.4.14/net/netfilter/ |
D | xt_owner.c | 56 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt() 57 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt() 65 if ((gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt() 66 gid_lte(filp->f_cred->fsgid, gid_max)) ^ in owner_mt()
|
D | nft_meta.c | 102 sk->sk_socket->file->f_cred->fsuid); in nft_meta_get_eval() 117 sk->sk_socket->file->f_cred->fsgid); in nft_meta_get_eval()
|
D | nf_log_common.c | 142 const struct cred *cred = sk->sk_socket->file->f_cred; in nf_log_dump_sk_uid_gid()
|
D | nfnetlink_log.c | 558 const struct cred *cred = file->f_cred; in __build_packet_message()
|
D | nfnetlink_queue.c | 265 cred = sk->sk_socket->file->f_cred; in nfqnl_put_sk_uidgid()
|
/linux-4.4.14/drivers/isdn/hysdn/ |
D | hysdn_procconf.c | 240 filep->f_cred->fsuid, filep->f_cred->fsgid, in hysdn_conf_open() 314 filep->f_cred->fsuid, filep->f_cred->fsgid, in hysdn_conf_close()
|
/linux-4.4.14/include/rdma/ |
D | ib.h | 102 return filp->f_cred == current_cred() && segment_eq(get_fs(), USER_DS); in ib_safe_file_access()
|
/linux-4.4.14/fs/ |
D | file_table.c | 48 put_cred(f->f_cred); in file_free_rcu() 127 f->f_cred = get_cred(cred); in get_empty_filp()
|
D | seq_file.c | 76 p->user_ns = file->f_cred->user_ns; in seq_open()
|
/linux-4.4.14/kernel/ |
D | acct.c | 481 orig_cred = override_creds(file->f_cred); in do_acct_process() 492 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process() 493 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
|
D | capability.c | 426 if (security_capable(file->f_cred, ns, cap) == 0) in file_ns_capable()
|
D | user_namespace.c | 820 const struct cred *cred = file->f_cred; in new_idmap_permitted()
|
/linux-4.4.14/fs/coda/ |
D | file.c | 169 coda_flags, coda_file->f_cred->fsuid); in coda_release()
|
/linux-4.4.14/net/sched/ |
D | cls_flow.c | 204 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid() 216 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
|
/linux-4.4.14/fs/ecryptfs/ |
D | messaging.c | 122 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { in ecryptfs_find_daemon_by_euid()
|
/linux-4.4.14/Documentation/security/ |
D | credentials.txt | 559 credentials and this is attached to the file struct as 'f_cred' in place of 561 should now access file->f_cred->fsuid and file->f_cred->fsgid. 563 It is safe to access f_cred without the use of RCU or locking because the
|
/linux-4.4.14/fs/autofs4/ |
D | waitq.c | 149 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs4_notify_daemon()
|
/linux-4.4.14/security/apparmor/ |
D | lsm.c | 419 struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); in common_file_perm()
|
/linux-4.4.14/fs/fuse/ |
D | dev.c | 2256 old->f_cred->user_ns == file->f_cred->user_ns) in fuse_dev_ioctl()
|
D | inode.c | 1071 (file->f_cred->user_ns != &init_user_ns)) in fuse_fill_super()
|
/linux-4.4.14/drivers/pci/ |
D | pci-sysfs.c | 640 if (security_capable(filp->f_cred, &init_user_ns, CAP_SYS_ADMIN) == 0) in pci_read_config()
|
/linux-4.4.14/fs/proc/ |
D | base.c | 1232 from_kuid(file->f_cred->user_ns, in proc_loginuid_read() 1266 kloginuid = make_kuid(file->f_cred->user_ns, loginuid); in proc_loginuid_write()
|
/linux-4.4.14/include/net/ |
D | sock.h | 710 return sk->sk_socket->file->f_cred->user_ns; in sk_user_ns()
|
/linux-4.4.14/include/linux/ |
D | fs.h | 859 const struct cred *f_cred; member
|