Searched refs:init_user_ns (Results 1 - 189 of 189) sorted by relevance

/linux-4.4.14/net/netfilter/
H A Dxt_owner.c27 (current_user_ns() != &init_user_ns)) owner_check()
54 kuid_t uid_min = make_kuid(&init_user_ns, info->uid_min); owner_mt()
55 kuid_t uid_max = make_kuid(&init_user_ns, info->uid_max); owner_mt()
63 kgid_t gid_min = make_kgid(&init_user_ns, info->gid_min); owner_mt()
64 kgid_t gid_max = make_kgid(&init_user_ns, info->gid_max); owner_mt()
H A Dnf_log_common.c144 from_kuid_munged(&init_user_ns, cred->fsuid), nf_log_dump_sk_uid_gid()
145 from_kgid_munged(&init_user_ns, cred->fsgid)); nf_log_dump_sk_uid_gid()
H A Dnf_conntrack_acct.c77 if (net->user_ns != &init_user_ns) nf_conntrack_acct_init_sysctl()
H A Dnf_conntrack_timestamp.c55 if (net->user_ns != &init_user_ns) nf_conntrack_tstamp_init_sysctl()
H A Dnft_meta.c101 *dest = from_kuid_munged(&init_user_ns, nft_meta_get_eval()
116 *dest = from_kgid_munged(&init_user_ns, nft_meta_get_eval()
H A Dnf_conntrack_ecache.c277 if (net->user_ns != &init_user_ns) nf_conntrack_event_init_sysctl()
H A Dxt_recent.c411 uid = make_kuid(&init_user_ns, ip_list_uid); recent_mt_check()
412 gid = make_kgid(&init_user_ns, ip_list_gid); recent_mt_check()
H A Dnf_conntrack_helper.c70 if (net->user_ns != &init_user_ns) nf_conntrack_helper_init_sysctl()
H A Dnf_conntrack_standalone.c513 if (net->user_ns != &init_user_ns) nf_conntrack_standalone_init_sysctl()
H A Dnfnetlink_queue.c267 htonl(from_kuid_munged(&init_user_ns, cred->fsuid)))) nfqnl_put_sk_uidgid()
270 htonl(from_kgid_munged(&init_user_ns, cred->fsgid)))) nfqnl_put_sk_uidgid()
H A Dnf_conntrack_proto_dccp.c842 if (net->user_ns != &init_user_ns) dccp_kmemdup_sysctl_table()
/linux-4.4.14/fs/gfs2/
H A Dacl.c62 acl = posix_acl_from_xattr(&init_user_ns, data, len); gfs2_get_acl()
96 len = posix_acl_to_xattr(&init_user_ns, acl, NULL, 0); gfs2_set_acl()
102 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); gfs2_set_acl()
H A Dquota.c200 return (2 * (u64)from_kqid(&init_user_ns, qid)) + qd2index()
630 qc->qc_id = cpu_to_be32(from_kqid(&init_user_ns, qd->qd_id)); do_qc()
1133 from_kqid(&init_user_ns, qd->qd_id)); print_message()
1355 struct kqid qc_id = make_kqid(&init_user_ns, qtype, gfs2_quota_init()
/linux-4.4.14/security/tomoyo/
H A Daudit.c169 from_kuid(&init_user_ns, current_uid()), tomoyo_print_header()
170 from_kgid(&init_user_ns, current_gid()), tomoyo_print_header()
171 from_kuid(&init_user_ns, current_euid()), tomoyo_print_header()
172 from_kgid(&init_user_ns, current_egid()), tomoyo_print_header()
173 from_kuid(&init_user_ns, current_suid()), tomoyo_print_header()
174 from_kgid(&init_user_ns, current_sgid()), tomoyo_print_header()
175 from_kuid(&init_user_ns, current_fsuid()), tomoyo_print_header()
176 from_kgid(&init_user_ns, current_fsgid())); tomoyo_print_header()
197 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
198 from_kgid(&init_user_ns, stat->gid), tomoyo_print_header()
206 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
207 from_kgid(&init_user_ns, stat->gid), tomoyo_print_header()
H A Dcondition.c816 value = from_kuid(&init_user_ns, current_uid()); tomoyo_condition()
819 value = from_kuid(&init_user_ns, current_euid()); tomoyo_condition()
822 value = from_kuid(&init_user_ns, current_suid()); tomoyo_condition()
825 value = from_kuid(&init_user_ns, current_fsuid()); tomoyo_condition()
828 value = from_kgid(&init_user_ns, current_gid()); tomoyo_condition()
831 value = from_kgid(&init_user_ns, current_egid()); tomoyo_condition()
834 value = from_kgid(&init_user_ns, current_sgid()); tomoyo_condition()
837 value = from_kgid(&init_user_ns, current_fsgid()); tomoyo_condition()
973 value = from_kuid(&init_user_ns, stat->uid); tomoyo_condition()
979 value = from_kgid(&init_user_ns, stat->gid); tomoyo_condition()
H A Dtomoyo.c374 from_kuid(&init_user_ns, uid)); tomoyo_path_chown()
377 from_kgid(&init_user_ns, gid)); tomoyo_path_chown()
/linux-4.4.14/init/
H A Dversion.c37 .user_ns = &init_user_ns,
/linux-4.4.14/security/integrity/
H A Dintegrity_audit.c44 from_kuid(&init_user_ns, current_cred()->uid), integrity_audit_msg()
45 from_kuid(&init_user_ns, audit_get_loginuid(current)), integrity_audit_msg()
/linux-4.4.14/net/sunrpc/
H A Dauth_unix.c68 from_kuid(&init_user_ns, acred->uid), unx_create_cred()
69 from_kgid(&init_user_ns, acred->gid)); unx_create_cred()
160 *p++ = htonl((u32) from_kuid(&init_user_ns, cred->uc_uid)); unx_marshal()
161 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gid)); unx_marshal()
164 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gids[i])); unx_marshal()
H A Dsvcauth_unix.c419 return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS); unix_gid_hash()
468 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); unix_gid_request()
495 uid = make_kuid(&init_user_ns, id); unix_gid_parse()
517 kgid = make_kgid(&init_user_ns, gid); unix_gid_parse()
549 struct user_namespace *user_ns = &init_user_ns; unix_gid_show()
818 cred->cr_uid = make_kuid(&init_user_ns, svc_getnl(argv)); /* uid */ svcauth_unix_accept()
819 cred->cr_gid = make_kgid(&init_user_ns, svc_getnl(argv)); /* gid */ svcauth_unix_accept()
827 kgid_t kgid = make_kgid(&init_user_ns, svc_getnl(argv)); svcauth_unix_accept()
H A Dauth_generic.c107 from_kuid(&init_user_ns, acred->uid), generic_create_cred()
108 from_kgid(&init_user_ns, acred->gid)); generic_create_cred()
248 from_kuid(&init_user_ns, tcred->cr_uid)); generic_key_timeout()
H A Dauth.c554 nr = hash_long(from_kuid(&init_user_ns, acred->uid), cache->hashbits); rpcauth_lookup_credcache()
/linux-4.4.14/net/unix/
H A Dsysctl_net_unix.c38 if (net->user_ns != &init_user_ns) unix_sysctl_register()
/linux-4.4.14/fs/ceph/
H A Dacl.c70 acl = posix_acl_from_xattr(&init_user_ns, value, size); ceph_get_acl()
124 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); ceph_set_acl()
211 err = posix_acl_to_xattr(&init_user_ns, acl, ceph_pre_init_acls()
225 err = posix_acl_to_xattr(&init_user_ns, default_acl, ceph_pre_init_acls()
H A Dinode.c733 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(info->uid)); fill_inode()
734 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(info->gid)); fill_inode()
736 from_kuid(&init_user_ns, inode->i_uid), fill_inode()
737 from_kgid(&init_user_ns, inode->i_gid)); fill_inode()
1822 from_kuid(&init_user_ns, inode->i_uid), ceph_setattr()
1823 from_kuid(&init_user_ns, attr->ia_uid)); ceph_setattr()
1830 from_kuid(&init_user_ns, attr->ia_uid)); ceph_setattr()
1837 from_kgid(&init_user_ns, inode->i_gid), ceph_setattr()
1838 from_kgid(&init_user_ns, attr->ia_gid)); ceph_setattr()
1845 from_kgid(&init_user_ns, attr->ia_gid)); ceph_setattr()
H A Dcaps.c1047 fc->uid = cpu_to_le32(from_kuid(&init_user_ns, uid)); send_cap_msg()
1048 fc->gid = cpu_to_le32(from_kgid(&init_user_ns, gid)); send_cap_msg()
2828 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(grant->uid));
2829 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid));
2831 from_kuid(&init_user_ns, inode->i_uid),
2832 from_kgid(&init_user_ns, inode->i_gid));
H A Dmds_client.c1974 head->caller_uid = cpu_to_le32(from_kuid(&init_user_ns, req->r_uid)); create_request_message()
1975 head->caller_gid = cpu_to_le32(from_kgid(&init_user_ns, req->r_gid)); create_request_message()
/linux-4.4.14/fs/coda/
H A Dcoda_linux.c97 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); coda_vattr_to_iattr()
99 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); coda_vattr_to_iattr()
168 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); coda_iattr_to_vattr()
171 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); coda_iattr_to_vattr()
H A Dupcall.c55 inp->ih.uid = from_kuid(&init_user_ns, current_fsuid()); alloc_upcall()
169 inp->ih.uid = from_kuid(&init_user_ns, uid); venus_close()
H A Dpsdev.c275 if (current_user_ns() != &init_user_ns) coda_psdev_open()
/linux-4.4.14/fs/ext2/
H A Dacl.c62 make_kuid(&init_user_ns, ext2_acl_from_disk()
70 make_kgid(&init_user_ns, ext2_acl_from_disk()
112 from_kuid(&init_user_ns, acl_e->e_uid)); ext2_acl_to_disk()
117 from_kgid(&init_user_ns, acl_e->e_gid)); ext2_acl_to_disk()
H A Dsuper.c241 if (!uid_eq(sbi->s_resuid, make_kuid(&init_user_ns, EXT2_DEF_RESUID)) || ext2_show_options()
244 from_kuid_munged(&init_user_ns, sbi->s_resuid)); ext2_show_options()
246 if (!gid_eq(sbi->s_resgid, make_kgid(&init_user_ns, EXT2_DEF_RESGID)) || ext2_show_options()
249 from_kgid_munged(&init_user_ns, sbi->s_resgid)); ext2_show_options()
879 sbi->s_resuid = make_kuid(&init_user_ns, le16_to_cpu(es->s_def_resuid)); ext2_fill_super()
880 sbi->s_resgid = make_kgid(&init_user_ns, le16_to_cpu(es->s_def_resgid)); ext2_fill_super()
/linux-4.4.14/fs/ext4/
H A Dacl.c60 make_kuid(&init_user_ns, ext4_acl_from_disk()
68 make_kgid(&init_user_ns, ext4_acl_from_disk()
110 from_kuid(&init_user_ns, acl_e->e_uid)); ext4_acl_to_disk()
115 from_kgid(&init_user_ns, acl_e->e_gid)); ext4_acl_to_disk()
H A Dsuper.c1843 if (nodefs || !uid_eq(sbi->s_resuid, make_kuid(&init_user_ns, EXT4_DEF_RESUID)) || _ext4_show_options()
1846 from_kuid_munged(&init_user_ns, sbi->s_resuid)); _ext4_show_options()
1847 if (nodefs || !gid_eq(sbi->s_resgid, make_kgid(&init_user_ns, EXT4_DEF_RESGID)) || _ext4_show_options()
1850 from_kgid_munged(&init_user_ns, sbi->s_resgid)); _ext4_show_options()
3258 sbi->s_resuid = make_kuid(&init_user_ns, le16_to_cpu(es->s_def_resuid)); ext4_fill_super()
3259 sbi->s_resgid = make_kgid(&init_user_ns, le16_to_cpu(es->s_def_resgid)); ext4_fill_super()
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
H A Dmdc_lib.c47 b->uid = from_kuid(&init_user_ns, current_uid()); __mdc_pack_body()
48 b->gid = from_kgid(&init_user_ns, current_gid()); __mdc_pack_body()
49 b->fsuid = from_kuid(&init_user_ns, current_fsuid()); __mdc_pack_body()
50 b->fsgid = from_kgid(&init_user_ns, current_fsgid()); __mdc_pack_body()
193 rec->cr_fsuid = from_kuid(&init_user_ns, current_fsuid()); mdc_open_pack()
194 rec->cr_fsgid = from_kgid(&init_user_ns, current_fsgid()); mdc_open_pack()
270 rec->sa_fsuid = from_kuid(&init_user_ns, current_fsuid()); mdc_setattr_pack_rec()
271 rec->sa_fsgid = from_kgid(&init_user_ns, current_fsgid()); mdc_setattr_pack_rec()
278 rec->sa_uid = from_kuid(&init_user_ns, op_data->op_attr.ia_uid); mdc_setattr_pack_rec()
279 rec->sa_gid = from_kgid(&init_user_ns, op_data->op_attr.ia_gid); mdc_setattr_pack_rec()
290 from_kgid(&init_user_ns, op_data->op_attr.ia_gid); mdc_setattr_pack_rec()
H A Dmdc_request.c341 rec->sx_fsuid = from_kuid(&init_user_ns, current_fsuid()); mdc_xattr_common()
342 rec->sx_fsgid = from_kgid(&init_user_ns, current_fsgid()); mdc_xattr_common()
426 acl = posix_acl_from_xattr(&init_user_ns, buf, body->aclsize); mdc_unpack_acl()
/linux-4.4.14/fs/hfsplus/
H A Dposix_acl.c43 acl = posix_acl_from_xattr(&init_user_ns, value, size); hfsplus_get_posix_acl()
95 err = posix_acl_to_xattr(&init_user_ns, acl, value, size); hfsplus_set_posix_acl()
H A Doptions.c225 from_kuid_munged(&init_user_ns, sbi->uid), hfsplus_show_options()
226 from_kgid_munged(&init_user_ns, sbi->gid)); hfsplus_show_options()
/linux-4.4.14/include/linux/
H A Duser_namespace.h44 extern struct user_namespace init_user_ns;
79 return &init_user_ns; get_user_ns()
H A Dutsname.h21 extern struct user_namespace init_user_ns;
H A Dprojid.h17 extern struct user_namespace init_user_ns;
H A Dseq_file.h152 extern struct user_namespace init_user_ns; seq_user_ns()
153 return &init_user_ns; seq_user_ns()
H A Duidgid.h18 extern struct user_namespace init_user_ns;
H A Dcred.h376 extern struct user_namespace init_user_ns;
380 #define current_user_ns() (&init_user_ns)
H A Dfs.h778 return from_kuid(&init_user_ns, inode->i_uid); i_uid_read()
783 return from_kgid(&init_user_ns, inode->i_gid); i_gid_read()
788 inode->i_uid = make_kuid(&init_user_ns, uid); i_uid_write()
793 inode->i_gid = make_kgid(&init_user_ns, gid); i_gid_write()
/linux-4.4.14/fs/nfs_common/
H A Dnfsacl.c60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); xdr_nfsace_encode()
63 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); xdr_nfsace_encode()
66 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); xdr_nfsace_encode()
69 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); xdr_nfsace_encode()
169 entry->e_uid = make_kuid(&init_user_ns, id); xdr_nfsace_decode()
174 entry->e_gid = make_kgid(&init_user_ns, id); xdr_nfsace_decode()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
H A Dremote_perm.c128 remote_perm_hashfunc(from_kuid(&init_user_ns, current_uid())); do_check_remote_perm()
132 if (lrp->lrp_uid != from_kuid(&init_user_ns, current_uid())) hlist_for_each_entry()
134 if (lrp->lrp_gid != from_kgid(&init_user_ns, current_gid())) hlist_for_each_entry()
136 if (lrp->lrp_fsuid != from_kuid(&init_user_ns, current_fsuid())) hlist_for_each_entry()
138 if (lrp->lrp_fsgid != from_kgid(&init_user_ns, current_fsgid())) hlist_for_each_entry()
H A Dvvp_object.c93 attr->cat_uid = from_kuid(&init_user_ns, inode->i_uid); vvp_attr_get()
94 attr->cat_gid = from_kgid(&init_user_ns, inode->i_gid); vvp_attr_get()
105 inode->i_uid = make_kuid(&init_user_ns, attr->cat_uid); vvp_attr_set()
107 inode->i_gid = make_kgid(&init_user_ns, attr->cat_gid); vvp_attr_set()
H A Dnamei.c282 return (__u32)from_kgid(&init_user_ns, i->i_gid); ll_i2suppgid()
786 from_kuid(&init_user_ns, current_fsuid()), ll_new_node()
787 from_kgid(&init_user_ns, current_fsgid()), ll_new_node()
H A Dllite_lib.c1574 inode->i_uid = make_kuid(&init_user_ns, body->uid); ll_update_inode()
1576 inode->i_gid = make_kgid(&init_user_ns, body->gid); ll_update_inode()
1812 from_kuid(&init_user_ns, current_uid())); ll_flush_ctx()
2141 op_data->op_fsuid = from_kuid(&init_user_ns, current_fsuid()); ll_prep_md_op_data()
2142 op_data->op_fsgid = from_kgid(&init_user_ns, current_fsgid()); ll_prep_md_op_data()
H A Ddir.c674 from_kuid(&init_user_ns, current_fsuid()), ll_dir_setdirstripe()
675 from_kgid(&init_user_ns, current_fsgid()), ll_dir_setdirstripe()
1092 !uid_eq(current_euid(), make_kuid(&init_user_ns, id))) || quotactl_ioctl()
1094 !in_egroup_p(make_kgid(&init_user_ns, id)))) && quotactl_ioctl()
H A Dxattr.c349 rc = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); ll_getxattr_common()
H A Dlproc_llite.c937 from_kgid(&init_user_ns, current_gid())) ll_stats_ops_tally()
H A Dfile.c2169 attr->ia_uid = make_kuid(&init_user_ns, hui->hui_uid); ll_hsm_import()
2170 attr->ia_gid = make_kgid(&init_user_ns, hui->hui_gid); ll_hsm_import()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dobdo.c103 dst->o_uid = from_kuid(&init_user_ns, src->i_uid); obdo_from_inode()
107 dst->o_gid = from_kgid(&init_user_ns, src->i_gid); obdo_from_inode()
164 if (!in_group_p(make_kgid(&init_user_ns, oa->o_gid)) && iattr_from_obdo()
169 attr->ia_uid = make_kuid(&init_user_ns, oa->o_uid); iattr_from_obdo()
173 attr->ia_gid = make_kgid(&init_user_ns, oa->o_gid); iattr_from_obdo()
H A Dclass_obd.c108 from_kuid(&init_user_ns, current_fsuid())); lustre_get_jobid()
/linux-4.4.14/kernel/
H A Duser.c25 struct user_namespace init_user_ns = { variable in typeref:struct:user_namespace
60 __RWSEM_INITIALIZER(init_user_ns.persistent_keyring_register_sem),
63 EXPORT_SYMBOL_GPL(init_user_ns); variable
H A Dcred.c63 .user_ns = &init_user_ns,
399 for (;subset_ns != &init_user_ns; subset_ns = subset_ns->parent) { cred_cap_issubset()
738 from_kuid_munged(&init_user_ns, cred->uid), dump_invalid_creds()
739 from_kuid_munged(&init_user_ns, cred->euid), dump_invalid_creds()
740 from_kuid_munged(&init_user_ns, cred->suid), dump_invalid_creds()
741 from_kuid_munged(&init_user_ns, cred->fsuid)); dump_invalid_creds()
743 from_kgid_munged(&init_user_ns, cred->gid), dump_invalid_creds()
744 from_kgid_munged(&init_user_ns, cred->egid), dump_invalid_creds()
745 from_kgid_munged(&init_user_ns, cred->sgid), dump_invalid_creds()
746 from_kgid_munged(&init_user_ns, cred->fsgid)); dump_invalid_creds()
H A Dcapability.c308 * has_capability - Does a task have a capability in init_user_ns
319 return has_ns_capability(t, &init_user_ns, cap); has_capability()
354 * currently in effect to init_user_ns, false if not. Don't write an
361 return has_ns_capability_noaudit(t, &init_user_ns, cap); has_capability_noaudit()
403 return ns_capable(&init_user_ns, cap); capable()
H A Daudit.c663 if (current_user_ns() != &init_user_ns) audit_netlink_ok()
706 uid_t uid = from_kuid(&init_user_ns, current_uid()); audit_log_common_recv_msg()
1022 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); audit_receive_msg()
1656 uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current)); audit_log_session_info()
1786 from_kuid(&init_user_ns, n->uid), audit_log_name()
1787 from_kgid(&init_user_ns, n->gid), audit_log_name()
1900 from_kuid(&init_user_ns, audit_get_loginuid(tsk)), audit_log_task_info()
1901 from_kuid(&init_user_ns, cred->uid), audit_log_task_info()
1902 from_kgid(&init_user_ns, cred->gid), audit_log_task_info()
1903 from_kuid(&init_user_ns, cred->euid), audit_log_task_info()
1904 from_kuid(&init_user_ns, cred->suid), audit_log_task_info()
1905 from_kuid(&init_user_ns, cred->fsuid), audit_log_task_info()
1906 from_kgid(&init_user_ns, cred->egid), audit_log_task_info()
1907 from_kgid(&init_user_ns, cred->sgid), audit_log_task_info()
1908 from_kgid(&init_user_ns, cred->fsgid), audit_log_task_info()
H A Daudit_fsnotify.c134 from_kuid(&init_user_ns, audit_get_loginuid(current)), audit_mark_log_rule_change()
H A Dauditsc.c973 from_kuid(&init_user_ns, auid), audit_log_pid_context()
974 from_kuid(&init_user_ns, uid), sessionid); audit_log_pid_context()
1192 from_kuid(&init_user_ns, context->ipc.uid), show_special()
1193 from_kgid(&init_user_ns, context->ipc.gid), show_special()
1987 uid = from_kuid(&init_user_ns, task_uid(current)); audit_log_set_loginuid()
1988 oldloginuid = from_kuid(&init_user_ns, koldloginuid); audit_log_set_loginuid()
1989 loginuid = from_kuid(&init_user_ns, kloginuid), audit_log_set_loginuid()
2371 from_kuid(&init_user_ns, auid), audit_log_task()
2372 from_kuid(&init_user_ns, uid), audit_log_task()
2373 from_kgid(&init_user_ns, gid), audit_log_task()
H A Dtaskstats.c289 if (current_user_ns() != &init_user_ns) add_del_listener()
645 fill_stats(&init_user_ns, &init_pid_ns, tsk, stats); taskstats_exit()
H A Daudit_watch.c245 from_kuid(&init_user_ns, audit_get_loginuid(current)), audit_watch_log_rule_change()
H A Dpid.c81 .user_ns = &init_user_ns,
H A Dauditfilter.c1066 uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(current)); audit_log_rule_change()
H A Dsys.c1386 /* Keep the capable check against init_user_ns until do_prlimit()
/linux-4.4.14/drivers/connector/
H A Dcn_proc.c143 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); proc_id_connector()
144 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); proc_id_connector()
146 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); proc_id_connector()
147 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); proc_id_connector()
349 if ((current_user_ns() != &init_user_ns) || cn_proc_mcast_ctl()
354 if (!__netlink_ns_capable(nsp, &init_user_ns, CAP_NET_ADMIN)) { cn_proc_mcast_ctl()
/linux-4.4.14/fs/jfs/
H A Dacl.c67 acl = posix_acl_from_xattr(&init_user_ns, value, size); jfs_get_acl()
108 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); __jfs_set_acl()
H A Dsuper.c705 seq_printf(seq, ",uid=%d", from_kuid(&init_user_ns, sbi->uid)); jfs_show_options()
707 seq_printf(seq, ",gid=%d", from_kgid(&init_user_ns, sbi->gid)); jfs_show_options()
H A Djfs_imap.c3070 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); copy_from_dinode()
3077 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); copy_from_dinode()
3145 dip->di_uid =cpu_to_le32(from_kuid(&init_user_ns, copy_to_dinode()
3150 dip->di_gid = cpu_to_le32(from_kgid(&init_user_ns, copy_to_dinode()
/linux-4.4.14/fs/btrfs/
H A Dacl.c57 acl = posix_acl_from_xattr(&init_user_ns, value, size); btrfs_get_acl()
111 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); __btrfs_set_acl()
/linux-4.4.14/fs/quota/
H A Dnetlink.c74 from_kqid_munged(&init_user_ns, qid)); quota_send_warning()
87 from_kuid_munged(&init_user_ns, current_uid())); quota_send_warning()
H A Dquota_v2.c215 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); v2r0_mem2diskdqb()
228 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, v2r0_is_id()
268 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); v2r1_mem2diskdqb()
281 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, v2r1_is_id()
H A Dquota_v1.c67 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); v1_read_dqblk()
98 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); v1_commit_dqblk()
H A Dquota_tree.c28 qid_t id = from_kqid(&init_user_ns, qid); get_index()
551 from_kqid(&init_user_ns, dquot->dq_id)); find_block_dqentry()
621 from_kqid(&init_user_ns, qtree_read_dquot()
640 from_kqid(&init_user_ns, dquot->dq_id)); qtree_read_dquot()
H A Dquota.c559 if (from_kqid(&init_user_ns, qid) == 0 && quota_setxquota()
H A Ddquot.c255 unsigned int id = from_kqid(&init_user_ns, qid); hashfn()
744 from_kqid(&init_user_ns, dquot->dq_id)); dqput()
/linux-4.4.14/fs/f2fs/
H A Dacl.c88 make_kuid(&init_user_ns, f2fs_acl_from_disk()
95 make_kgid(&init_user_ns, f2fs_acl_from_disk()
134 from_kuid(&init_user_ns, f2fs_acl_to_disk()
141 from_kgid(&init_user_ns, f2fs_acl_to_disk()
/linux-4.4.14/fs/jffs2/
H A Dacl.c104 make_kuid(&init_user_ns, jffs2_acl_from_medium()
112 make_kgid(&init_user_ns, jffs2_acl_from_medium()
149 from_kuid(&init_user_ns, acl_e->e_uid)); jffs2_acl_to_medium()
154 from_kgid(&init_user_ns, acl_e->e_gid)); jffs2_acl_to_medium()
H A Dfs.c103 from_kuid(&init_user_ns, iattr->ia_uid):i_uid_read(inode)); jffs2_do_setattr()
105 from_kgid(&init_user_ns, iattr->ia_gid):i_gid_read(inode)); jffs2_do_setattr()
444 ri->uid = cpu_to_je16(from_kuid(&init_user_ns, current_fsuid())); jffs2_new_inode()
451 ri->gid = cpu_to_je16(from_kgid(&init_user_ns, current_fsgid())); jffs2_new_inode()
/linux-4.4.14/net/xfrm/
H A Dxfrm_sysctl.c58 if (net->user_ns != &init_user_ns) xfrm_sysctl_init()
/linux-4.4.14/fs/9p/
H A Dacl.c41 acl = posix_acl_from_xattr(&init_user_ns, value, size); __v9fs_get_acl()
131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); v9fs_set_acl()
238 error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); v9fs_xattr_get_acl()
271 acl = posix_acl_from_xattr(&init_user_ns, value, size); v9fs_xattr_set_acl()
H A Dfid.c69 dentry, dentry, from_kuid(&init_user_ns, uid), v9fs_fid_find()
/linux-4.4.14/fs/ocfs2/
H A Dacl.c67 make_kuid(&init_user_ns, ocfs2_acl_from_xattr()
72 make_kgid(&init_user_ns, ocfs2_acl_from_xattr()
106 from_kuid(&init_user_ns, ocfs2_acl_to_xattr()
111 from_kgid(&init_user_ns, ocfs2_acl_to_xattr()
H A Dquota_global.c99 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); ocfs2_global_mem2diskdqb()
121 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, ocfs2_global_is_id()
511 trace_ocfs2_sync_dquot(from_kqid(&init_user_ns, dquot->dq_id), __ocfs2_sync_dquot()
564 (unsigned)from_kqid(&init_user_ns, dquot->dq_id)); __ocfs2_sync_dquot()
599 trace_ocfs2_sync_dquot_helper(from_kqid(&init_user_ns, dquot->dq_id), ocfs2_sync_dquot_helper()
652 trace_ocfs2_write_dquot(from_kqid(&init_user_ns, dquot->dq_id), ocfs2_write_dquot()
712 trace_ocfs2_release_dquot(from_kqid(&init_user_ns, dquot->dq_id), ocfs2_release_dquot()
790 trace_ocfs2_acquire_dquot(from_kqid(&init_user_ns, dquot->dq_id), ocfs2_acquire_dquot()
879 trace_ocfs2_mark_dquot_dirty(from_kqid(&init_user_ns, dquot->dq_id), ocfs2_mark_dquot_dirty()
H A Dquota_local.c499 make_kqid(&init_user_ns, type, ocfs2_recover_local_quota_file()
880 dqblk->dqb_id = cpu_to_le64(from_kqid(&init_user_ns, olq_set_dquot()
891 from_kqid(&init_user_ns, od->dq_dquot.dq_id)); olq_set_dquot()
H A Dfile.c1146 from_kuid(&init_user_ns, attr->ia_uid), ocfs2_setattr()
1147 from_kgid(&init_user_ns, attr->ia_gid)); ocfs2_setattr()
/linux-4.4.14/fs/xfs/
H A Dxfs_linux.h184 * are converting to the init_user_ns. The uid is later mapped to a particular
189 return from_kuid(&init_user_ns, uid); xfs_kuid_to_uid()
194 return make_kuid(&init_user_ns, uid); xfs_uid_to_kuid()
199 return from_kgid(&init_user_ns, gid); xfs_kgid_to_gid()
204 return make_kgid(&init_user_ns, gid); xfs_gid_to_kgid()
H A Dxfs_quotaops.c240 return xfs_qm_scall_getquota(mp, from_kqid(&init_user_ns, qid), xfs_fs_get_dqblk()
259 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), xfs_fs_set_dqblk()
H A Dxfs_trans_dquot.c578 quota_send_warning(make_kqid(&init_user_ns, xfs_quota_warn()
H A Dxfs_ioctl.c1166 if (current_user_ns() == &init_user_ns) xfs_ioctl_setattr_check_projid()
/linux-4.4.14/fs/cifs/
H A Dcifs_spnego.c151 from_kuid_munged(&init_user_ns, sesInfo->linux_uid)); cifs_get_spnego_key()
155 from_kuid_munged(&init_user_ns, sesInfo->cred_uid)); cifs_get_spnego_key()
H A Dcifsacl.c310 uid = make_kuid(&init_user_ns, id); sid_to_id()
317 gid = make_kgid(&init_user_ns, id); sid_to_id()
829 id = from_kuid(&init_user_ns, uid); build_sec_desc()
849 id = from_kgid(&init_user_ns, gid); build_sec_desc()
H A Dcifsfs.c429 from_kuid_munged(&init_user_ns, cifs_sb->mnt_uid)); cifs_show_options()
436 from_kgid_munged(&init_user_ns, cifs_sb->mnt_gid)); cifs_show_options()
501 from_kuid_munged(&init_user_ns, cifs_show_options()
505 from_kgid_munged(&init_user_ns, cifs_show_options()
H A Dinode.c286 kuid_t uid = make_kuid(&init_user_ns, id); cifs_unix_basic_to_fattr()
296 kgid_t gid = make_kgid(&init_user_ns, id); cifs_unix_basic_to_fattr()
H A Dcifsproto.h51 from_kuid(&init_user_ns, current_fsuid())); \
H A Dcifssmb.c5974 uid = from_kuid(&init_user_ns, args->uid); cifs_fill_unix_set_info()
5976 gid = from_kgid(&init_user_ns, args->gid); cifs_fill_unix_set_info()
/linux-4.4.14/kernel/bpf/
H A Dhelpers.c151 return (u64) from_kgid(&init_user_ns, gid) << 32 | bpf_get_current_uid_gid()
152 from_kuid(&init_user_ns, uid); bpf_get_current_uid_gid()
/linux-4.4.14/fs/reiserfs/
H A Dxattr_acl.c96 make_kuid(&init_user_ns, reiserfs_posix_acl_from_disk()
104 make_kgid(&init_user_ns, reiserfs_posix_acl_from_disk()
147 from_kuid(&init_user_ns, acl_e->e_uid)); reiserfs_posix_acl_to_disk()
152 from_kgid(&init_user_ns, acl_e->e_gid)); reiserfs_posix_acl_to_disk()
H A Dinode.c3370 if ((((attr->ia_valid & ATTR_UID) && (from_kuid(&init_user_ns, attr->ia_uid) & ~0xffff)) || reiserfs_setattr()
3371 ((attr->ia_valid & ATTR_GID) && (from_kgid(&init_user_ns, attr->ia_gid) & ~0xffff))) && reiserfs_setattr()
/linux-4.4.14/fs/
H A Dposix_acl.c640 if (user_ns == &init_user_ns) posix_acl_fix_xattr_from_user()
642 posix_acl_fix_xattr_userns(&init_user_ns, user_ns, value, size); posix_acl_fix_xattr_from_user()
648 if (user_ns == &init_user_ns) posix_acl_fix_xattr_to_user()
650 posix_acl_fix_xattr_userns(user_ns, &init_user_ns, value, size); posix_acl_fix_xattr_to_user()
785 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); posix_acl_xattr_get()
813 acl = posix_acl_from_xattr(&init_user_ns, value, size); posix_acl_xattr_set()
H A Dcoredump.c218 from_kuid(&init_user_ns, format_corename()
224 from_kgid(&init_user_ns, format_corename()
H A Dnamespace.c2181 if ((mnt->mnt_ns->user_ns != &init_user_ns) && do_remount()
2391 if (user_ns != &init_user_ns) { do_new_mount()
2851 struct mnt_namespace *new_ns = alloc_mnt_ns(&init_user_ns); create_mnt_ns()
/linux-4.4.14/fs/nfsd/
H A Dnfsxdr.c104 iap->ia_uid = make_kuid(&init_user_ns, tmp); decode_sattr()
109 iap->ia_gid = make_kgid(&init_user_ns, tmp); decode_sattr()
157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); encode_fattr()
158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); encode_fattr()
H A Dexport.c571 exp.ex_anon_uid= make_kuid(&init_user_ns, an_int); svc_export_parse()
577 exp.ex_anon_gid= make_kgid(&init_user_ns, an_int); svc_export_parse()
1163 if (!uid_eq(anonu, make_kuid(&init_user_ns, (uid_t)-2)) && exp_flags()
1164 !uid_eq(anonu, make_kuid(&init_user_ns, 0x10000-2))) exp_flags()
1165 seq_printf(m, ",anonuid=%u", from_kuid(&init_user_ns, anonu)); exp_flags()
1166 if (!gid_eq(anong, make_kgid(&init_user_ns, (gid_t)-2)) && exp_flags()
1167 !gid_eq(anong, make_kgid(&init_user_ns, 0x10000-2))) exp_flags()
1168 seq_printf(m, ",anongid=%u", from_kgid(&init_user_ns, anong)); exp_flags()
H A Dnfs4idmap.c632 *uid = make_kuid(&init_user_ns, id); nfsd_map_name_to_uid()
645 *gid = make_kgid(&init_user_ns, id); nfsd_map_name_to_gid()
654 u32 id = from_kuid(&init_user_ns, uid); nfsd4_encode_user()
661 u32 id = from_kgid(&init_user_ns, gid); nfsd4_encode_group()
H A Dnfs3xdr.c109 iap->ia_uid = make_kuid(&init_user_ns, ntohl(*p++)); decode_sattr3()
114 iap->ia_gid = make_kgid(&init_user_ns, ntohl(*p++)); decode_sattr3()
170 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); encode_fattr3()
171 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); encode_fattr3()
H A Dnfs4xdr.c517 kuid_t kuid = make_kuid(&init_user_ns, uid); nfsd4_decode_cb_sec()
518 kgid_t kgid = make_kgid(&init_user_ns, gid); nfsd4_decode_cb_sec()
/linux-4.4.14/net/9p/
H A Dprotocol.c177 *uid = make_kuid(&init_user_ns, p9pdu_vreadf()
187 *gid = make_kgid(&init_user_ns, p9pdu_vreadf()
408 from_kuid(&init_user_ns, uid)); p9pdu_vwritef()
415 from_kgid(&init_user_ns, gid)); p9pdu_vwritef()
H A Dclient.c1285 from_kgid(&init_user_ns, gid)); p9_client_create_dotl()
1713 from_kuid(&init_user_ns, ret->n_uid), p9_client_stat()
1714 from_kgid(&init_user_ns, ret->n_gid), p9_client_stat()
1715 from_kuid(&init_user_ns, ret->n_muid)); p9_client_stat()
1770 from_kuid(&init_user_ns, ret->st_uid), p9_client_getattr_dotl()
1771 from_kgid(&init_user_ns, ret->st_gid), p9_client_getattr_dotl()
1835 from_kuid(&init_user_ns, wst->n_uid), p9_client_wstat()
1836 from_kgid(&init_user_ns, wst->n_gid), p9_client_wstat()
1837 from_kuid(&init_user_ns, wst->n_muid)); p9_client_wstat()
1867 from_kuid(&init_user_ns, p9attr->uid), p9_client_setattr()
1868 from_kgid(&init_user_ns, p9attr->gid), p9_client_setattr()
2161 fid->fid, name, mode, from_kgid(&init_user_ns, gid)); p9_client_mkdir_dotl()
/linux-4.4.14/ipc/
H A Dmsgutil.c33 .user_ns = &init_user_ns,
/linux-4.4.14/net/netlabel/
H A Dnetlabel_user.c107 from_kuid(&init_user_ns, audit_info->loginuid), netlbl_audit_start_common()
/linux-4.4.14/drivers/tty/
H A Dtty_audit.c69 uid_t uid = from_kuid(&init_user_ns, task_uid(tsk)); tty_audit_log()
70 uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(tsk)); tty_audit_log()
/linux-4.4.14/fs/hpfs/
H A Dinode.c267 from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000) hpfs_setattr()
270 from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000) hpfs_setattr()
H A Dsuper.c505 seq_printf(seq, ",uid=%u", from_kuid_munged(&init_user_ns, sbi->sb_uid)); hpfs_show_options()
506 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, sbi->sb_gid)); hpfs_show_options()
/linux-4.4.14/security/integrity/evm/
H A Devm_crypto.c111 hmac_misc.uid = from_kuid(&init_user_ns, inode->i_uid); hmac_add_misc()
112 hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); hmac_add_misc()
/linux-4.4.14/fs/autofs4/
H A Dinode.c82 from_kuid_munged(&init_user_ns, root_inode->i_uid)); autofs4_show_options()
85 from_kgid_munged(&init_user_ns, root_inode->i_gid)); autofs4_show_options()
/linux-4.4.14/net/sched/
H A Dcls_flow.c206 return from_kuid(&init_user_ns, skuid); flow_get_skuid()
218 return from_kgid(&init_user_ns, skgid); flow_get_skgid()
417 sk_user_ns(NETLINK_CB(in_skb).sk) != &init_user_ns) flow_change()
/linux-4.4.14/fs/nfs/
H A Dnfs4idmap.c725 *uid = make_kuid(&init_user_ns, id); nfs_map_name_to_uid()
742 *gid = make_kgid(&init_user_ns, id); nfs_map_group_to_gid()
756 id = from_kuid(&init_user_ns, uid); nfs_map_uid_to_name()
770 id = from_kgid(&init_user_ns, gid); nfs_map_gid_to_group()
H A Dnfs2xdr.c293 fattr->uid = make_kuid(&init_user_ns, be32_to_cpup(p++)); decode_fattr()
296 fattr->gid = make_kgid(&init_user_ns, be32_to_cpup(p++)); decode_fattr()
365 *p++ = cpu_to_be32(from_kuid(&init_user_ns, attr->ia_uid)); encode_sattr()
369 *p++ = cpu_to_be32(from_kgid(&init_user_ns, attr->ia_gid)); encode_sattr()
H A Dnfs3xdr.c595 *p++ = cpu_to_be32(from_kuid(&init_user_ns, attr->ia_uid)); encode_sattr3()
601 *p++ = cpu_to_be32(from_kgid(&init_user_ns, attr->ia_gid)); encode_sattr3()
660 fattr->uid = make_kuid(&init_user_ns, be32_to_cpup(p++)); decode_fattr3()
663 fattr->gid = make_kgid(&init_user_ns, be32_to_cpup(p++)); decode_fattr3()
H A Dnfs4xdr.c1037 from_kuid(&init_user_ns, iap->ia_uid)); encode_attrs()
1050 from_kgid(&init_user_ns, iap->ia_gid)); encode_attrs()
3861 *uid = make_kuid(&init_user_ns, -2); decode_attr_owner()
3889 dprintk("%s: uid=%d\n", __func__, (int)from_kuid(&init_user_ns, *uid)); decode_attr_owner()
3904 *gid = make_kgid(&init_user_ns, -2); decode_attr_group()
3932 dprintk("%s: gid=%d\n", __func__, (int)from_kgid(&init_user_ns, *gid)); decode_attr_group()
H A Dinode.c422 inode->i_uid = make_kuid(&init_user_ns, -2); nfs_fhget()
423 inode->i_gid = make_kgid(&init_user_ns, -2); nfs_fhget()
/linux-4.4.14/fs/hfs/
H A Dsuper.c143 from_kuid_munged(&init_user_ns, sbi->s_uid), hfs_show_options()
144 from_kgid_munged(&init_user_ns, sbi->s_gid)); hfs_show_options()
/linux-4.4.14/arch/s390/hypfs/
H A Dinode.c262 seq_printf(s, ",uid=%u", from_kuid_munged(&init_user_ns, hypfs_info->uid)); hypfs_show_options()
263 seq_printf(s, ",gid=%u", from_kgid_munged(&init_user_ns, hypfs_info->gid)); hypfs_show_options()
/linux-4.4.14/fs/fuse/
H A Dinode.c169 inode->i_uid = make_kuid(&init_user_ns, attr->uid); fuse_change_attributes_common()
170 inode->i_gid = make_kgid(&init_user_ns, attr->gid); fuse_change_attributes_common()
557 seq_printf(m, ",user_id=%u", from_kuid_munged(&init_user_ns, fc->user_id)); fuse_show_options()
558 seq_printf(m, ",group_id=%u", from_kgid_munged(&init_user_ns, fc->group_id)); fuse_show_options()
1071 (file->f_cred->user_ns != &init_user_ns)) fuse_fill_super()
H A Ddir.c844 stat->uid = make_kuid(&init_user_ns, attr->uid); fuse_fillattr()
845 stat->gid = make_kgid(&init_user_ns, attr->gid); fuse_fillattr()
1466 arg->valid |= FATTR_UID, arg->uid = from_kuid(&init_user_ns, iattr->ia_uid); iattr_to_fattr()
1468 arg->valid |= FATTR_GID, arg->gid = from_kgid(&init_user_ns, iattr->ia_gid); iattr_to_fattr()
H A Ddev.c129 req->in.h.uid = from_kuid_munged(&init_user_ns, current_fsuid()); fuse_req_init_context()
130 req->in.h.gid = from_kgid_munged(&init_user_ns, current_fsgid()); fuse_req_init_context()
/linux-4.4.14/net/sunrpc/auth_gss/
H A Dgss_rpc_xdr.c203 creds->cr_uid = make_kuid(&init_user_ns, tmp); gssx_dec_linux_creds()
209 creds->cr_gid = make_kgid(&init_user_ns, tmp); gssx_dec_linux_creds()
229 kgid = make_kgid(&init_user_ns, tmp); gssx_dec_linux_creds()
H A Dauth_gss.c435 uid_t uid = from_kuid(&init_user_ns, gss_msg->uid); gss_encode_v0_msg()
453 from_kuid(&init_user_ns, gss_msg->uid)); gss_encode_v1_msg()
570 task->tk_pid, __func__, from_kuid(&init_user_ns, cred->cr_uid)); gss_refresh_upcall()
603 from_kuid(&init_user_ns, cred->cr_uid), err); gss_refresh_upcall()
619 __func__, from_kuid(&init_user_ns, cred->cr_uid)); gss_create_upcall()
667 __func__, from_kuid(&init_user_ns, cred->cr_uid), err); gss_create_upcall()
703 uid = make_kuid(&init_user_ns, id); gss_pipe_downcall()
1313 __func__, from_kuid(&init_user_ns, acred->uid), gss_create_cred()
H A Dsvcauth_gss.c456 rsci.cred.cr_uid = make_kuid(&init_user_ns, id); rsc_parse()
461 rsci.cred.cr_gid = make_kgid(&init_user_ns, id); rsc_parse()
479 kgid = make_kgid(&init_user_ns, id); rsc_parse()
/linux-4.4.14/fs/devpts/
H A Dinode.c341 from_kuid_munged(&init_user_ns, opts->uid)); devpts_show_options()
344 from_kgid_munged(&init_user_ns, opts->gid)); devpts_show_options()
460 if ((current_user_ns() != &init_user_ns) && !opts.newinstance) devpts_mount()
/linux-4.4.14/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c342 .uid = make_kuid(&init_user_ns, mirror->uid), ff_layout_update_mirror_cred()
343 .gid = make_kgid(&init_user_ns, mirror->gid), ff_layout_update_mirror_cred()
/linux-4.4.14/security/apparmor/
H A Dfile.c80 from_kuid(&init_user_ns, fsuid)); file_audit_cb()
82 from_kuid(&init_user_ns, sa->aad->fs.ouid)); file_audit_cb()
/linux-4.4.14/fs/adfs/
H A Dsuper.c134 seq_printf(seq, ",uid=%u", from_kuid_munged(&init_user_ns, asb->s_uid)); adfs_show_options()
136 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, asb->s_gid)); adfs_show_options()
/linux-4.4.14/net/core/
H A Dsysctl_net_core.c435 if (net->user_ns != &init_user_ns) { sysctl_core_net_init()
H A Dnet_namespace.c750 if (setup_net(&init_net, &init_user_ns)) net_ns_init()
H A Ddev.c5739 from_kuid(&init_user_ns, audit_get_loginuid(current)), __dev_set_promiscuity()
5740 from_kuid(&init_user_ns, uid), __dev_set_promiscuity()
5741 from_kgid(&init_user_ns, gid), __dev_set_promiscuity()
H A Dneighbour.c3166 if (neigh_parms_net(p)->user_ns != &init_user_ns) neigh_sysctl_register()
H A Dsock.c178 return sk_ns_capable(sk, &init_user_ns, cap); sk_capable()
H A Dskbuff.c3686 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); skb_may_tx_timestamp()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec.c270 vcred.vc_uid = from_kuid(&init_user_ns, current_uid()); get_my_ctx()
271 vcred.vc_gid = from_kgid(&init_user_ns, current_gid()); get_my_ctx()
1463 import_flush_ctx_common(imp, from_kuid(&init_user_ns, current_uid()), sptlrpc_import_flush_my_ctx()
2190 pud->pud_uid = from_kuid(&init_user_ns, current_uid()); sptlrpc_pack_user_desc()
2191 pud->pud_gid = from_kgid(&init_user_ns, current_gid()); sptlrpc_pack_user_desc()
2192 pud->pud_fsuid = from_kuid(&init_user_ns, current_fsuid()); sptlrpc_pack_user_desc()
2193 pud->pud_fsgid = from_kgid(&init_user_ns, current_fsgid()); sptlrpc_pack_user_desc()
/linux-4.4.14/fs/hostfs/
H A Dhostfs_kern.c829 attrs.ia_uid = from_kuid(&init_user_ns, attr->ia_uid); hostfs_setattr()
833 attrs.ia_gid = from_kgid(&init_user_ns, attr->ia_gid); hostfs_setattr()
/linux-4.4.14/security/keys/
H A Drequest_key.c132 sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid)); call_sbin_request_key()
133 sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid)); call_sbin_request_key()
/linux-4.4.14/fs/debugfs/
H A Dinode.c157 from_kuid_munged(&init_user_ns, opts->uid)); debugfs_show_options()
160 from_kgid_munged(&init_user_ns, opts->gid)); debugfs_show_options()
/linux-4.4.14/fs/tracefs/
H A Dinode.c251 from_kuid_munged(&init_user_ns, opts->uid)); tracefs_show_options()
254 from_kgid_munged(&init_user_ns, opts->gid)); tracefs_show_options()
/linux-4.4.14/fs/ubifs/
H A Dsb.c613 c->rp_uid = make_kuid(&init_user_ns, le32_to_cpu(sup->rp_uid)); ubifs_read_superblock()
614 c->rp_gid = make_kgid(&init_user_ns, le32_to_cpu(sup->rp_gid)); ubifs_read_superblock()
/linux-4.4.14/net/ipv4/
H A Dsysctl_net_ipv4.c146 low = make_kgid(&init_user_ns, 1); ipv4_ping_group_range()
147 high = make_kgid(&init_user_ns, 0); ipv4_ping_group_range()
H A Dip_fragment.c795 if (net->user_ns != &init_user_ns) ip4_frags_ns_ctl_register()
H A Daf_inet.c1618 net->ipv4.ping_group_range.range[0] = make_kgid(&init_user_ns, 1); inet_init_net()
1619 net->ipv4.ping_group_range.range[1] = make_kgid(&init_user_ns, 0); inet_init_net()
H A Droute.c2785 if (net->user_ns != &init_user_ns) sysctl_route_net_init()
/linux-4.4.14/fs/afs/
H A Dfsclient.c61 owner = make_kuid(&init_user_ns, ntohl(*bp++)); xdr_decode_AFSFetchStatus()
72 group = make_kgid(&init_user_ns, ntohl(*bp++)); xdr_decode_AFSFetchStatus()
190 owner = from_kuid(&init_user_ns, attr->ia_uid); xdr_encode_AFS_StoreStatus()
195 group = from_kgid(&init_user_ns, attr->ia_gid); xdr_encode_AFS_StoreStatus()
/linux-4.4.14/fs/proc/
H A Dinode.c108 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, pid->pid_gid)); proc_show_options()
H A Dtask_mmu.c1275 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); pagemap_read()
/linux-4.4.14/fs/ncpfs/
H A Dinode.c337 from_kuid_munged(&init_user_ns, server->m.uid)); ncp_show_options()
340 from_kgid_munged(&init_user_ns, server->m.gid)); ncp_show_options()
343 from_kuid_munged(&init_user_ns, server->m.mounted_uid)); ncp_show_options()
/linux-4.4.14/security/
H A Dcommoncap.c86 if (ns == &init_user_ns) cap_capable()
1033 if (cap_capable(current_cred(), &init_user_ns, CAP_SYS_ADMIN, cap_vm_enough_memory()
1053 ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO, cap_mmap_addr()
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
H A Dlmv_obd.c1899 op_data->op_fsuid = from_kuid(&init_user_ns, current_fsuid()); lmv_link()
1900 op_data->op_fsgid = from_kgid(&init_user_ns, current_fsgid()); lmv_link()
1940 op_data->op_fsuid = from_kuid(&init_user_ns, current_fsuid()); lmv_rename()
1941 op_data->op_fsgid = from_kgid(&init_user_ns, current_fsgid()); lmv_rename()
2200 op_data->op_fsuid = from_kuid(&init_user_ns, current_fsuid()); lmv_unlink()
2201 op_data->op_fsgid = from_kgid(&init_user_ns, current_fsgid()); lmv_unlink()
/linux-4.4.14/security/selinux/
H A Dselinuxfs.c179 from_kuid(&init_user_ns, audit_get_loginuid(current)), sel_write_enforce()
310 from_kuid(&init_user_ns, audit_get_loginuid(current)), sel_write_disable()
556 from_kuid(&init_user_ns, audit_get_loginuid(current)), sel_write_load()
H A Dhooks.c3132 error = cap_capable(current_cred(), &init_user_ns, CAP_MAC_ADMIN, selinux_inode_getsecurity()
/linux-4.4.14/net/ieee802154/6lowpan/
H A Dreassembly.c515 if (net->user_ns != &init_user_ns) lowpan_frags_ns_sysctl_register()
/linux-4.4.14/fs/ecryptfs/
H A Dmessaging.c36 hash_long((unsigned long)from_kuid(&init_user_ns, current_euid()), ecryptfs_hash_bits)
H A Dmain.c554 from_kuid(&init_user_ns, current_uid())); ecryptfs_mount()
/linux-4.4.14/net/netfilter/ipvs/
H A Dip_vs_lblc.c567 if (net->user_ns != &init_user_ns) __ip_vs_lblc_init()
H A Dip_vs_lblcr.c753 if (net->user_ns != &init_user_ns) __ip_vs_lblcr_init()
H A Dip_vs_ctl.c3856 if (net->user_ns != &init_user_ns) ip_vs_control_net_init_sysctl()
/linux-4.4.14/arch/x86/mm/
H A Dfault.c611 printk(nx_warning, from_kuid(&init_user_ns, current_uid())); show_fault_oops()
615 printk(smep_warning, from_kuid(&init_user_ns, current_uid())); show_fault_oops()
/linux-4.4.14/fs/befs/
H A Dlinuxvfs.c348 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); befs_iget()
351 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); befs_iget()
/linux-4.4.14/mm/
H A Doom_kill.c375 task->pid, from_kuid(&init_user_ns, task_uid(task)), for_each_process()
H A Dshmem.c2908 from_kuid_munged(&init_user_ns, sbinfo->uid)); shmem_show_options()
2911 from_kgid_munged(&init_user_ns, sbinfo->gid)); shmem_show_options()
/linux-4.4.14/arch/powerpc/mm/
H A Dfault.c494 address, from_kuid(&init_user_ns, current_uid())); do_page_fault()
/linux-4.4.14/arch/ia64/kernel/
H A Dmca_drv.c162 from_kuid(&init_user_ns, current_uid()), mca_handler_bh()
H A Dperfmon.c2371 from_kuid(&init_user_ns, uid), pfm_bad_permissions()
2372 from_kgid(&init_user_ns, gid), pfm_bad_permissions()
2373 from_kuid(&init_user_ns, tcred->euid), pfm_bad_permissions()
2374 from_kuid(&init_user_ns, tcred->suid), pfm_bad_permissions()
2375 from_kuid(&init_user_ns, tcred->uid), pfm_bad_permissions()
2376 from_kgid(&init_user_ns, tcred->egid), pfm_bad_permissions()
2377 from_kgid(&init_user_ns, tcred->sgid))); pfm_bad_permissions()
/linux-4.4.14/net/ipv6/
H A Dreassembly.c648 if (net->user_ns != &init_user_ns) ip6_frags_ns_sysctl_register()
H A Droute.c3528 if (net->user_ns != &init_user_ns) ipv6_route_sysctl_init()
/linux-4.4.14/fs/fat/
H A Dinode.c843 from_kuid_munged(&init_user_ns, opts->fs_uid)); fat_show_options()
846 from_kgid_munged(&init_user_ns, opts->fs_gid)); fat_show_options()
/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dinode.c1924 inode->i_uid = make_kuid(&init_user_ns, default_uid); gadgetfs_make_inode()
1925 inode->i_gid = make_kgid(&init_user_ns, default_gid); gadgetfs_make_inode()
/linux-4.4.14/drivers/net/
H A Dtun.c1991 from_kuid(&init_user_ns, tun->owner)); __tun_chr_ioctl()
2003 from_kgid(&init_user_ns, tun->group)); __tun_chr_ioctl()
/linux-4.4.14/drivers/base/
H A Dcore.c320 add_uevent_var(env, "DEVUID=%u", from_kuid(&init_user_ns, uid)); dev_uevent()
322 add_uevent_var(env, "DEVGID=%u", from_kgid(&init_user_ns, gid)); dev_uevent()
/linux-4.4.14/fs/udf/
H A Dsuper.c361 seq_printf(seq, ",uid=%u", from_kuid(&init_user_ns, sbi->s_uid)); udf_show_options()
363 seq_printf(seq, ",gid=%u", from_kgid(&init_user_ns, sbi->s_gid)); udf_show_options()
/linux-4.4.14/arch/x86/kernel/
H A Dvm86_32.c258 from_kuid_munged(&init_user_ns, current_uid())); do_sys_vm86()
/linux-4.4.14/fs/hugetlbfs/
H A Dinode.c1214 shm_group = make_kgid(&init_user_ns, sysctl_hugetlb_shm_group); can_do_hugetlb_shm()
/linux-4.4.14/drivers/android/
H A Dbinder.c2707 from_kuid(&init_user_ns, curr_euid), binder_ioctl_set_ctx_mgr()
2708 from_kuid(&init_user_ns, binder_ioctl_set_ctx_mgr()
/linux-4.4.14/drivers/pci/
H A Dpci-sysfs.c640 if (security_capable(filp->f_cred, &init_user_ns, CAP_SYS_ADMIN) == 0) pci_read_config()
/linux-4.4.14/include/net/
H A Dxfrm.h711 const unsigned int auid = from_kuid(&init_user_ns, task_valid ? xfrm_audit_helper_usrinfo()
/linux-4.4.14/fs/ntfs/
H A Dinode.c2317 seq_printf(sf, ",uid=%i", from_kuid_munged(&init_user_ns, vol->uid)); ntfs_show_options()
2318 seq_printf(sf, ",gid=%i", from_kgid_munged(&init_user_ns, vol->gid)); ntfs_show_options()
/linux-4.4.14/security/selinux/ss/
H A Dservices.c2651 from_kuid(&init_user_ns, audit_get_loginuid(current)), security_set_bools()
/linux-4.4.14/net/netlink/
H A Daf_netlink.c1432 return netlink_ns_capable(skb, &init_user_ns, cap); netlink_capable()
/linux-4.4.14/drivers/net/wireless/
H A Dairo.c5664 proc_kuid = make_kuid(&init_user_ns, proc_uid); airo_init_module()
5665 proc_kgid = make_kgid(&init_user_ns, proc_gid); airo_init_module()

Completed in 8524 milliseconds