/linux-6.6.21/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-6.6.21/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 | audit.c | 1045 if (current_user_ns() != &init_user_ns) in audit_netlink_ok() 1089 uid_t uid = from_kuid(&init_user_ns, current_uid()); in audit_log_common_recv_msg() 1487 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg() 1616 from_kuid(&init_user_ns, cred->uid), in audit_log_multicast() 1617 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_multicast() 2167 uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in audit_log_session_info() 2262 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_task_info() 2263 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info() 2264 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info() 2265 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info() [all …]
|
D | capability.c | 304 return has_ns_capability(t, &init_user_ns, cap); in has_capability() 347 return has_ns_capability_noaudit(t, &init_user_ns, cap); in has_capability_noaudit() 436 return ns_capable(&init_user_ns, cap); in capable()
|
/linux-6.6.21/fs/smb/server/ |
D | smbacl.h | 220 vfsuid = make_vfsuid(idmap, &init_user_ns, pace->e_uid); in posix_acl_uid_translate() 223 return from_kuid(&init_user_ns, vfsuid_into_kuid(vfsuid)); in posix_acl_uid_translate() 232 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate() 235 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
|
/linux-6.6.21/fs/coda/ |
D | coda_linux.c | 116 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); in coda_vattr_to_iattr() 118 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-6.6.21/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() 241 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode() 246 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
|
/linux-6.6.21/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-6.6.21/fs/xfs/ |
D | xfs_acl.c | 74 acl_e->e_uid = make_kuid(&init_user_ns, in xfs_acl_from_disk() 78 acl_e->e_gid = make_kgid(&init_user_ns, in xfs_acl_from_disk() 113 from_kuid(&init_user_ns, acl_e->e_uid)); in xfs_acl_to_disk() 117 from_kgid(&init_user_ns, acl_e->e_gid)); in xfs_acl_to_disk()
|
/linux-6.6.21/fs/ceph/ |
D | acl.c | 71 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl() 134 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ceph_set_acl() 219 err = posix_acl_to_xattr(&init_user_ns, acl, in ceph_pre_init_acls() 233 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
|
/linux-6.6.21/security/integrity/ |
D | integrity_audit.c | 52 from_kuid(&init_user_ns, current_uid()), in integrity_audit_message() 53 from_kuid(&init_user_ns, audit_get_loginuid(current)), in integrity_audit_message()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/mm/ |
D | shmem_quota.c | 120 qid_t id = from_kqid(&init_user_ns, *qid); in shmem_get_next_id() 155 *qid = make_kqid(&init_user_ns, qid->type, entry->id); in shmem_get_next_id() 172 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_acquire_dquot() 268 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_release_dquot()
|
/linux-6.6.21/fs/reiserfs/ |
D | xattr_acl.c | 110 make_kuid(&init_user_ns, in reiserfs_posix_acl_from_disk() 118 make_kgid(&init_user_ns, in reiserfs_posix_acl_from_disk() 161 from_kuid(&init_user_ns, acl_e->e_uid)); in reiserfs_posix_acl_to_disk() 166 from_kgid(&init_user_ns, acl_e->e_gid)); in reiserfs_posix_acl_to_disk()
|
/linux-6.6.21/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()
|
D | acl.c | 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 98 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
|
/linux-6.6.21/fs/btrfs/ |
D | acl.c | 48 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl() 94 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
|
/linux-6.6.21/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()
|
/linux-6.6.21/fs/nfsd/ |
D | flexfilelayout.c | 54 u = from_kuid(&init_user_ns, inode->i_uid) + 1; in nfsd4_ff_proc_layoutget() 55 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-6.6.21/fs/gfs2/ |
D | acl.c | 55 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl() 95 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl()
|