/Linux-v5.10/security/tomoyo/ |
D | audit.c | 171 from_kuid(&init_user_ns, current_uid()), in tomoyo_print_header() 172 from_kgid(&init_user_ns, current_gid()), in tomoyo_print_header() 173 from_kuid(&init_user_ns, current_euid()), in tomoyo_print_header() 174 from_kgid(&init_user_ns, current_egid()), in tomoyo_print_header() 175 from_kuid(&init_user_ns, current_suid()), in tomoyo_print_header() 176 from_kgid(&init_user_ns, current_sgid()), in tomoyo_print_header() 177 from_kuid(&init_user_ns, current_fsuid()), in tomoyo_print_header() 178 from_kgid(&init_user_ns, current_fsgid())); in tomoyo_print_header() 200 from_kuid(&init_user_ns, stat->uid), in tomoyo_print_header() 201 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header() [all …]
|
D | condition.c | 841 value = from_kuid(&init_user_ns, current_uid()); in tomoyo_condition() 844 value = from_kuid(&init_user_ns, current_euid()); in tomoyo_condition() 847 value = from_kuid(&init_user_ns, current_suid()); in tomoyo_condition() 850 value = from_kuid(&init_user_ns, current_fsuid()); in tomoyo_condition() 853 value = from_kgid(&init_user_ns, current_gid()); in tomoyo_condition() 856 value = from_kgid(&init_user_ns, current_egid()); in tomoyo_condition() 859 value = from_kgid(&init_user_ns, current_sgid()); in tomoyo_condition() 862 value = from_kgid(&init_user_ns, current_fsgid()); in tomoyo_condition() 999 value = from_kuid(&init_user_ns, stat->uid); in tomoyo_condition() 1005 value = from_kgid(&init_user_ns, stat->gid); in tomoyo_condition()
|
/Linux-v5.10/fs/nfs_common/ |
D | nfsacl.c | 61 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode() 64 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode() 67 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode() 70 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode() 170 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode() 175 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
|
/Linux-v5.10/kernel/ |
D | user.c | 27 struct user_namespace init_user_ns = { variable 67 .keyring_name_list = LIST_HEAD_INIT(init_user_ns.keyring_name_list), 68 .keyring_sem = __RWSEM_INITIALIZER(init_user_ns.keyring_sem), 71 EXPORT_SYMBOL_GPL(init_user_ns);
|
D | cred.c | 61 .user_ns = &init_user_ns, 414 for (;subset_ns != &init_user_ns; subset_ns = subset_ns->parent) { in cred_cap_issubset() 816 from_kuid_munged(&init_user_ns, cred->uid), in dump_invalid_creds() 817 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds() 818 from_kuid_munged(&init_user_ns, cred->suid), in dump_invalid_creds() 819 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds() 821 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds() 822 from_kgid_munged(&init_user_ns, cred->egid), in dump_invalid_creds() 823 from_kgid_munged(&init_user_ns, cred->sgid), in dump_invalid_creds() 824 from_kgid_munged(&init_user_ns, cred->fsgid)); in dump_invalid_creds()
|
D | audit.c | 1015 if (current_user_ns() != &init_user_ns) in audit_netlink_ok() 1059 uid_t uid = from_kuid(&init_user_ns, current_uid()); in audit_log_common_recv_msg() 1455 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg() 1566 from_kuid(&init_user_ns, cred->uid), in audit_log_multicast() 1567 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_multicast() 2111 uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in audit_log_session_info() 2206 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_task_info() 2207 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info() 2208 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info() 2209 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info() [all …]
|
/Linux-v5.10/fs/coda/ |
D | coda_linux.c | 117 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); in coda_vattr_to_iattr() 119 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr() 188 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr() 191 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr()
|
/Linux-v5.10/fs/xfs/ |
D | xfs_acl.c | 72 acl_e->e_uid = make_kuid(&init_user_ns, in xfs_acl_from_disk() 76 acl_e->e_gid = make_kgid(&init_user_ns, in xfs_acl_from_disk() 111 from_kuid(&init_user_ns, acl_e->e_uid)); in xfs_acl_to_disk() 115 from_kgid(&init_user_ns, acl_e->e_gid)); in xfs_acl_to_disk()
|
/Linux-v5.10/fs/ext2/ |
D | acl.c | 63 make_kuid(&init_user_ns, in ext2_acl_from_disk() 71 make_kgid(&init_user_ns, in ext2_acl_from_disk() 113 from_kuid(&init_user_ns, acl_e->e_uid)); in ext2_acl_to_disk() 118 from_kgid(&init_user_ns, acl_e->e_gid)); in ext2_acl_to_disk()
|
/Linux-v5.10/fs/ceph/ |
D | acl.c | 68 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl() 128 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ceph_set_acl() 213 err = posix_acl_to_xattr(&init_user_ns, acl, in ceph_pre_init_acls() 227 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
|
/Linux-v5.10/security/integrity/ |
D | integrity_audit.c | 50 from_kuid(&init_user_ns, current_uid()), in integrity_audit_message() 51 from_kuid(&init_user_ns, audit_get_loginuid(current)), in integrity_audit_message()
|
/Linux-v5.10/drivers/connector/ |
D | cn_proc.c | 142 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector() 143 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector() 145 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector() 146 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector() 360 if ((current_user_ns() != &init_user_ns) || in cn_proc_mcast_ctl() 365 if (!__netlink_ns_capable(nsp, &init_user_ns, CAP_NET_ADMIN)) { in cn_proc_mcast_ctl()
|
/Linux-v5.10/fs/ext4/ |
D | acl.c | 62 make_kuid(&init_user_ns, in ext4_acl_from_disk() 70 make_kgid(&init_user_ns, in ext4_acl_from_disk() 112 from_kuid(&init_user_ns, acl_e->e_uid)); in ext4_acl_to_disk() 117 from_kgid(&init_user_ns, acl_e->e_gid)); in ext4_acl_to_disk()
|
/Linux-v5.10/fs/jffs2/ |
D | acl.c | 104 make_kuid(&init_user_ns, in jffs2_acl_from_medium() 112 make_kgid(&init_user_ns, in jffs2_acl_from_medium() 150 from_kuid(&init_user_ns, acl_e->e_uid)); in jffs2_acl_to_medium() 155 from_kgid(&init_user_ns, acl_e->e_gid)); in jffs2_acl_to_medium()
|
/Linux-v5.10/fs/quota/ |
D | netlink.c | 67 from_kqid_munged(&init_user_ns, qid), in quota_send_warning() 81 from_kuid_munged(&init_user_ns, current_uid()), in quota_send_warning()
|
/Linux-v5.10/fs/9p/ |
D | acl.c | 41 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl() 131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl() 235 error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_xattr_get_acl() 265 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_xattr_set_acl()
|
/Linux-v5.10/fs/reiserfs/ |
D | xattr_acl.c | 107 make_kuid(&init_user_ns, in reiserfs_posix_acl_from_disk() 115 make_kgid(&init_user_ns, in reiserfs_posix_acl_from_disk() 158 from_kuid(&init_user_ns, acl_e->e_uid)); in reiserfs_posix_acl_to_disk() 163 from_kgid(&init_user_ns, acl_e->e_gid)); in reiserfs_posix_acl_to_disk()
|
/Linux-v5.10/fs/orangefs/ |
D | orangefs-cache.c | 142 new_op->upcall.uid = from_kuid(&init_user_ns, in op_alloc() 145 new_op->upcall.gid = from_kgid(&init_user_ns, in op_alloc()
|
D | orangefs-utils.c | 145 attrs->owner = from_kuid(&init_user_ns, inode->i_uid); in copy_attributes_from_inode() 150 attrs->group = from_kgid(&init_user_ns, inode->i_gid); in copy_attributes_from_inode() 356 inode->i_uid = make_kuid(&init_user_ns, new_op-> in orangefs_inode_getattr() 358 inode->i_gid = make_kgid(&init_user_ns, new_op-> in orangefs_inode_getattr() 428 new_op->upcall.uid = from_kuid(&init_user_ns, orangefs_inode->attr_uid); in orangefs_inode_setattr() 429 new_op->upcall.gid = from_kgid(&init_user_ns, orangefs_inode->attr_gid); in orangefs_inode_setattr()
|
/Linux-v5.10/fs/ocfs2/ |
D | quota_global.c | 101 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in ocfs2_global_mem2diskdqb() 123 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in ocfs2_global_is_id() 517 trace_ocfs2_sync_dquot(from_kqid(&init_user_ns, dquot->dq_id), in __ocfs2_sync_dquot() 570 (unsigned)from_kqid(&init_user_ns, dquot->dq_id)); in __ocfs2_sync_dquot() 605 trace_ocfs2_sync_dquot_helper(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_sync_dquot_helper() 666 trace_ocfs2_write_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_write_dquot() 726 trace_ocfs2_release_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_release_dquot() 804 trace_ocfs2_acquire_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_acquire_dquot() 883 trace_ocfs2_get_next_id(from_kqid(&init_user_ns, *qid), type); in ocfs2_get_next_id() 924 trace_ocfs2_mark_dquot_dirty(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_mark_dquot_dirty()
|
D | acl.c | 59 make_kuid(&init_user_ns, in ocfs2_acl_from_xattr() 64 make_kgid(&init_user_ns, in ocfs2_acl_from_xattr() 98 from_kuid(&init_user_ns, in ocfs2_acl_to_xattr() 103 from_kgid(&init_user_ns, in ocfs2_acl_to_xattr()
|
/Linux-v5.10/fs/f2fs/ |
D | acl.c | 88 make_kuid(&init_user_ns, in f2fs_acl_from_disk() 95 make_kgid(&init_user_ns, in f2fs_acl_from_disk() 136 from_kuid(&init_user_ns, in f2fs_acl_to_disk() 143 from_kgid(&init_user_ns, in f2fs_acl_to_disk()
|
/Linux-v5.10/fs/nfsd/ |
D | flexfilelayout.c | 53 u = from_kuid(&init_user_ns, inode->i_uid) + 1; in nfsd4_ff_proc_layoutget() 54 fl->uid = make_kuid(&init_user_ns, u); in nfsd4_ff_proc_layoutget()
|
D | flexfilelayoutxdr.c | 35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget() 36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget()
|
/Linux-v5.10/fs/gfs2/ |
D | acl.c | 55 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl() 92 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl()
|